/* ============================================
   Arcane Solutions - Clean UIkit Theme

   Table of Contents:
   1.  Variables
   2.  Base Reset
   3.  Layout & Containers
   4.  Top Bar
   5.  Header & Sticky Nav
   6.  Navbar Links
   7.  Navbar Dropdown
   8.  Mobile Navigation
   9.  Search Bar
   10. Social Links
   11. Buttons
   12. Cards
   13. Forms
   14. Typography
   15. Hero Section
   16. Matrix Canvas
   17. Sections
   18. Services Showcase
   19. CTA Sections
   20. Partner & Platform Logos
   21. Newsletter
   22. Portfolio
   23. Blog
   24. FAQ Accordion
   25. Footer
   26. Scroll to Top
   27. Scrollbar
   28. Animations
   29. Responsive
   ============================================ */

/* ===========================================
   1. Variables
   =========================================== */
:root {
    --primary: #4169e1;
    --primary-dark: #2d4ec7;
    --dark: #f4f1eb;
    --light: #f8f9fa;
    --text-muted: #aaaaaa;
}

/* ===========================================
   2. Base Reset
   =========================================== */
html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a:hover {
    color: var(--primary);
    transition: 0.2s linear;
}

#main-content {
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

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

.uk-icon-link {
    transition: color 0.2s ease;
}

/* ===========================================
   3. Layout & Containers
   =========================================== */
.general-header .uk-container,
.top-bar .uk-container,
.home-hero .uk-container {
    max-width: 1200px;
    padding-left: 40px;
    padding-right: 40px;
}

/* ===========================================
   4. Top Bar
   =========================================== */
.top-bar {
    background-color: #000;
    border-bottom: 1px solid rgba(129, 129, 129, 0.2);
    padding: 6px 0;
}

.top-bar a {
    text-decoration: none;
    transition: color 0.2s linear;
    text-transform: uppercase;
    padding: 0 2px;
}

.top-bar a:hover {
    color: var(--primary) !important;
    text-decoration: none;
}

/* ===========================================
   5. Header & Sticky Nav
   =========================================== */
.general-header {
    background-color: #000;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1000;
}

.general-header.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.general-header.nav-hidden {
    transform: translateY(-100%);
}

/* ===========================================
   6. Navbar Links
   =========================================== */
.uk-navbar-nav > li > a {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 0 15px;
    line-height: normal;
    text-transform: none;
}

.general-header .uk-navbar-nav > li > a {
    line-height: 70px;
    font-size: 14px;
    text-transform: uppercase;
}

.uk-navbar-nav > li > a:hover {
    color: var(--primary);
}

.uk-navbar-nav > li.uk-active > a {
    color: var(--primary);
}

.uk-navbar-nav > li.uk-active > a::after {
    display: none;
}

/* ===========================================
   7. Navbar Dropdown
   =========================================== */
.uk-navbar-dropdown {
    padding: 15px 0;
    margin-top: 0 !important;
    top: 100% !important;
    border-radius: 0 0 15px 15px;
}

.uk-navbar-dropdown-nav > li > a {
    color: #ccc !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 25px;
    transition: all 0.2s ease;
}

.uk-navbar-dropdown-nav > li > a:hover {
    color: var(--primary) !important;
    background: rgba(255, 255, 255, 0.05);
}

/* ===========================================
   8. Mobile Navigation
   =========================================== */
.uk-offcanvas-bar {
    background-color: #000;
}

.uk-offcanvas-bar .uk-nav-primary > li > a {
    color: #fff;
    padding: 12px 0;
}

.uk-offcanvas-bar .uk-nav-primary > li > a:hover,
.uk-offcanvas-bar .uk-nav-primary > li.uk-active > a {
    color: var(--primary);
}

.mobile-nav > li > a {
    color: #ccc !important;
    font-size: 0.95rem;
    padding: 10px 15px;
    transition: color 0.2s ease;
}

.mobile-nav > li > a:hover,
.mobile-nav > li.uk-active > a {
    color: var(--primary) !important;
}

.mobile-nav .uk-nav-header {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 15px 5px;
}

.mobile-nav .uk-nav-sub {
    padding-left: 15px;
}

.mobile-nav .uk-nav-sub > li > a {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.85rem;
    padding: 6px 15px;
}

.mobile-nav .uk-nav-sub > li > a:hover {
    color: var(--primary) !important;
}

/* ===========================================
   9. Search Bar
   =========================================== */
.search-bar {
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.3s ease,
        padding 0.3s ease;
    padding: 0;
}

.search-bar.search-bar-open {
    max-height: 500px;
    padding: 15px 0;
}

.search-bar .uk-input {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.search-bar .uk-input:focus {
    border-color: var(--primary);
}

.search-bar .uk-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-result-item {
    display: block;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: rgba(65, 105, 225, 0.1);
}

.search-result-item h4 {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 3px 0;
}

.search-result-item p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0;
}

/* ===========================================
   10. Social Links
   =========================================== */
.social-links {
    padding: 0 0 0 5px;
}

.social-links a {
    color: #fff;
    margin: 0 5px;
}

.social-links a:hover {
    color: var(--primary);
}

.social-icons-colored a {
    color: #fff;
    transition: transform 0.2s ease;
}

.social-icons-colored a:hover {
    transform: scale(1.1);
    color: #fff;
}

/* ===========================================
   11. Buttons
   =========================================== */
.uk-button-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: 50px;
    transition: all 0.2s ease;
}

.uk-button-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.uk-button-large {
    padding: 0 40px;
    font-size: 1.1rem;
}

/* ===========================================
   12. Cards
   =========================================== */
.uk-card-hover {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

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

/* ===========================================
   13. Forms
   =========================================== */
.uk-input,
.uk-textarea,
.uk-select {
    border: 2px solid #e5e5e5;
    border-radius: 30px;
}

.uk-input:focus,
.uk-textarea:focus {
    border-color: var(--primary);
    border-width: 2px;
    outline: none;
}

/* ===========================================
   14. Typography
   =========================================== */
.uk-heading-hero {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: 10px;
    color: #fff;
}

/* ===========================================
   15. Hero Section
   =========================================== */
.home-hero {
    background: linear-gradient(135deg, #050e25 0%, #07102a 50%, #050e25 100%);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 0;
}

.home-hero .uk-container {
    position: relative;
    z-index: 1;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================================
   16. Matrix Canvas
   =========================================== */
#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.blinking-cursor {
    animation: blink 1s step-end infinite;
}

/* ===========================================
   17. Sections
   =========================================== */
.uk-section-muted {
    background-color: var(--dark);
}

.uk-section-large {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* ===========================================
   18. Services Showcase
   =========================================== */
.services-showcase {
    background-color: #000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0;
}

.services-showcase img {
    height: 150px;
    width: auto;
    margin-bottom: 15px;
}

.services-showcase .uk-grid-divider > :not(.uk-first-column)::before {
    border-left-color: rgba(255, 255, 255, 1);
}

/* ===========================================
   19. CTA Sections
   =========================================== */
.ecommerce-cta .ecommerce-cta-overlay {
    padding: 60px 0;
}

.ecommerce-launchpad,
.responsive-cta {
    background-color: #28357a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.ecommerce-launchpad-overlay,
.responsive-cta-overlay {
    background-color: rgba(40, 53, 122, 0.54);
    padding: 80px 0;
}

/* ===========================================
   20. Partner & Platform Logos
   =========================================== */
.partner-logo {
    width: 150px;
    height: 60px;
    object-fit: contain;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.platform-logo {
    height: 70px;
    width: auto;
    transition: transform 0.2s ease;
}

.platform-logo:hover {
    transform: scale(1.1);
}

/* ===========================================
   21. Newsletter
   =========================================== */
.newsletter-section {
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #050e25;
}

.newsletter-overlay {
    background-color: rgba(0, 0, 0, 0.75);
    padding: 80px 0;
}

.newsletter-modal {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* ===========================================
   22. Portfolio
   =========================================== */
.portfolio-filter li a {
    color: #999;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 15px;
    transition: all 0.2s ease;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.portfolio-filter li.uk-active a,
.portfolio-filter li a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.portfolio-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-card:hover {
    text-decoration: none;
    color: inherit;
}

.portfolio-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #eee;
    background: #fff;
}

.portfolio-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-thumb img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(65, 105, 225, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    padding: 12px 4px;
}

.portfolio-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.portfolio-info .portfolio-tag {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-info .portfolio-tag + .portfolio-tag::before {
    content: " · ";
    color: #999;
}

.portfolio-screenshot img {
    transition: box-shadow 0.3s ease;
}

.portfolio-screenshot img:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ===========================================
   23. Blog
   =========================================== */
.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.blog-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    border-radius: 6px;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ===========================================
   24. FAQ Accordion
   =========================================== */
.faq-accordion > li {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 0;
    transition: all 0.2s ease;
}

.faq-accordion > li:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.08);
}

.faq-accordion > li.uk-open {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(65, 105, 225, 0.12);
}

.faq-title {
    padding: 18px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.faq-title:hover {
    color: var(--primary);
    text-decoration: none;
}

.faq-title::before {
    display: none !important;
}

.faq-chevron {
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.uk-open > .faq-title .faq-chevron {
    transform: rotate(90deg);
}

.faq-content {
    padding: 0 20px 18px 48px;
    margin: 0;
}

.faq-content p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ===========================================
   25. Footer
   =========================================== */
.site-footer {
    background-color: #17172f;
    color: var(--text-muted);
    padding-bottom: 0 !important;
}

.site-footer h4 {
    color: #ffffff;
}

.site-footer a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--primary);
    text-decoration: none;
}

.site-footer .uk-text-primary {
    color: var(--primary) !important;
}

/* ===========================================
   26. Scroll to Top
   =========================================== */
.scroll-to-top {
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 999;
    background-color: var(--primary);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* ===========================================
   27. Scrollbar
   =========================================== */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===========================================
   28. Animations
   =========================================== */
@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.promo-arrow {
    display: inline-block;
    animation: strobe-arrow 1.5s ease-in-out infinite;
}

@keyframes strobe-arrow {
    0%,
    100% {
        opacity: 1;
        transform: translateX(0);
    }
    50% {
        opacity: 0.3;
        transform: translateX(4px);
    }
}

/* ===========================================
   29. Responsive
   =========================================== */
@media (max-width: 640px) {
    .general-header .uk-container,
    .top-bar .uk-container,
    .home-hero .uk-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .uk-heading-hero {
        font-size: 2rem;
        letter-spacing: 5px;
    }

    .uk-section-large {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .top-bar .uk-grid {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        margin-top: 8px;
    }
}

@media (max-width: 960px) {
    .promo-banner-grid .promo-image,
    .promo-banner-grid .promo-image div,
    .promo-banner-grid .promo-cta {
        border-radius: 0 !important;
    }
}
