/* Custom styles for Bootstrap 5 project */

/* ===============================================
   Dark Mode Theme Variables
   =============================================== */
:root {
    /* Light Mode (Default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --card-bg: #ffffff;
    --card-border: #dee2e6;
    --navbar-bg-scrolled: #000000;
    --particles-bg: #000000;
}

[data-theme="dark"] {
    /* Dark Mode */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --card-bg: #222222;
    --card-border: #333333;
    --navbar-bg-scrolled: #1a1a1a;
    --particles-bg: #0a0a0a;
}

body {
    /* Add your custom styles here */
    background-color: var(--particles-bg);
    overflow-x: hidden;
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    letter-spacing: -0.05em;
}

/* Force particles background */
#particles-js,
.large-header {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    /* Behind everything */
    background-color: transparent;
    /* Fallback/Base color */
    background-image: url('');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
}

.large-header #demo-canvas {
    width: 100%;
    height: 100%;
}

/* Background Slider */
.cb-slideshow,
.cb-slideshow:after {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: -2;
    /* Behind particles (-1) */
}



/* Fix interactions */
header {
    pointer-events: none;
}

header * {
    pointer-events: auto;
}

/* Navbar Transition */
.navbar {
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Adjust scroll position for fixed navbar */
#welcome,
#products {
    scroll-margin-top: 100px;
}

/* Navbar Hover Effect & Styles */
/* Navbar Hover Effect & Styles */
.navbar-nav .nav-link {
    border-radius: 50px;
    border: 1px solid transparent;
    padding: 8px 20px !important;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
}

/* Fix navbar opacity when transparent */
.navbar-dark .navbar-nav .nav-link {
    color: #fff;
    opacity: 1;
}

/* Navbar Links on Scroll (Black Background) */
.navbar.bg-black .nav-link {
    color: #fff;
}

.navbar.bg-black .nav-link:hover,
.navbar.bg-black .nav-link.active {
    color: #d1d1d1 !important;
    border-color: #ffffff;
}

/* Video Footer */
.lineBlack {
    background-color: #000;
    color: #fff;
    padding: 100px 0;
    position: relative;
    z-index: 100;
    overflow: hidden;
}

.footer-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.8;
}

.lineBlack .container,
.lineBlack .container-fluid {
    position: relative;
    z-index: 2;
}

.lineBlack p {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.3;
}

#downMenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

#downMenu li {
    display: inline-block;
    margin-left: 20px;
}

#downMenu li a {
    color: #cccccc;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

#downMenu li a:hover {
    opacity: 0.8;
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    background-color: var(--card-bg);
    border-color: var(--card-border);
    color: var(--text-primary);
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

.sidebar-card:hover {
    transform: none !important;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}

/* Dark Mode Additional Styles */
[data-theme="dark"] .card {
    box-shadow: 0 .125rem .25rem rgba(255, 255, 255, .05);
}

[data-theme="dark"] .card:hover {
    box-shadow: 0 1rem 3rem rgba(255, 255, 255, .1) !important;
}

[data-theme="dark"] .bg-white {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .bg-light,
[data-theme="dark"] .sections-bg {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] main.bg-white,
[data-theme="dark"] section.bg-white {
    background-color: var(--bg-primary) !important;
}

[data-theme="dark"] .product-card.bg-white {
    background-color: var(--card-bg) !important;
}

[data-theme="dark"] .overlay-content {
    background-color: var(--card-bg) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .icon-square.bg-light {
    background-color: var(--card-bg) !important;
}

[data-theme="dark"] .icon-square.text-dark {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .portfolio-flters li {
    color: var(--text-primary);
}

[data-theme="dark"] .portfolio-flters li:hover,
[data-theme="dark"] .portfolio-flters li.active {
    color: #6366f1;
}

[data-theme="dark"] .lead {
    color: var(--text-secondary) !important;
}

/* Category label in product cards */
[data-theme="dark"] .product-card .position-absolute.bg-white {
    background-color: var(--card-bg) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .product-card .position-absolute.text-dark {
    color: var(--text-primary) !important;
}

/* ===============================================
   Theme Toggle Icon Animations
   =============================================== */


/* Moon icon - No external animation (handled by SVG) */


#moonIcon:hover {
    opacity: 1 !important;
}

/* Global Button Styles */
.btn {
    border-radius: 50px;
    padding: 10px 30px;
}

/* Global Button Styles */
.btn {
    border-radius: 50px;
    padding: 10px 30px;
}

/* Card Button Styles */
.card .btn {
    padding: 5px 20px;
    font-size: 0.9rem;
}

/* Waves Animation */
.hero-waves {
    display: block;
    width: 100%;
    height: 60px;
    position: relative;
    margin-bottom: -1px;
    /* Prevent gap */
}



/* Impact Portfolio Styles */
/* Colorful Cloud Tag Styles */
.portfolio .portfolio-flters {
    padding: 0;
    margin: 0 auto 25px auto;
    list-style: none;
    text-align: center;
}

.portfolio .portfolio-flters li {
    cursor: pointer;
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    color: #fff;
    margin: 0 6px 10px 0;
    border-radius: 30px;
    /* Slight adjustment for Calypso feel */
    border: none;
    background-color: var(--badge-color, #6c757d);

    /* Calypso Effect Props */
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: inherit;
    letter-spacing: normal;
}

.portfolio .portfolio-flters li span {
    display: block;
    position: relative;
    z-index: 10;
    transition: color 0.3s;
}

/* Text Animation */
.portfolio .portfolio-flters li:hover span,
.portfolio .portfolio-flters li.active span {
    animation: MoveScaleUpInitial 0.3s forwards, MoveScaleUpEnd 0.3s forwards 0.3s;
    color: var(--badge-color);
    /* Switch to badge color on hover */
}

@keyframes MoveScaleUpInitial {
    to {
        transform: translate3d(0, -105%, 0) scale3d(1, 2, 1);
        opacity: 0;
    }
}

@keyframes MoveScaleUpEnd {
    from {
        transform: translate3d(0, 100%, 0) scale3d(1, 2, 1);
        opacity: 0;
    }

    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

/* Circular Background Expansion */
.portfolio .portfolio-flters li::before {
    content: '';
    background: #fff;
    /* White background on hover */
    width: 120%;
    height: 0;
    padding-bottom: 120%;
    top: -110%;
    left: -10%;
    border-radius: 50%;
    transform: translate3d(0, 68%, 0) scale3d(0, 0, 0);
    position: absolute;
    z-index: -1;
}

.portfolio .portfolio-flters li:hover::before,
.portfolio .portfolio-flters li.active::before {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    transition: transform 0.4s cubic-bezier(0.1, 0, 0.3, 1);
}

.portfolio .portfolio-flters li::after {
    content: '';
    background: #fff;
    transform: translate3d(0, -100%, 0);
    transition: transform 0.4s cubic-bezier(0.1, 0, 0.3, 1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.portfolio .portfolio-flters li:hover::after,
.portfolio .portfolio-flters li.active::after {
    transform: translate3d(0, 0, 0);
    transition-duration: 0.05s;
    transition-delay: 0.4s;
    transition-timing-function: linear;
}

.portfolio .portfolio-flters li:hover,
.portfolio .portfolio-flters li.active {
    /* Add border to active state for better visibility */
    border: 1px solid var(--color-primary, #6366f1);
}

/* Specific Colors using CSS Variables */
/* Paper Boat Animation */
.portfolio .portfolio-flters li {
    --badge-color: #6366f1;
    /* Solid color for text on hover */
    background-image: linear-gradient(45deg, #6366f1, #8b5cf6);
    background-color: #6366f1;
    /* Fallback */
    border: 1px solid transparent;
    /* Reserve space for border to prevent jumping */
}





/* Paper Boat Animation */


/* Custom Product Card Styles */
.product-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    /* transform: translateY(-5px); */
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); */
    transform: none;
    box-shadow: none;
}

.product-card h5 {
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    /* Slightly larger than defaults */
}

.product-image {
    transition: all 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.15);
}

.product-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6366f1;
}

.price i {
    font-size: 0.9em;
}

.btn-custom {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border: none;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* Product Color Swatches */
.product-color-swatch {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: help;
    transition: transform 0.2s ease;
}

.product-color-swatch:hover {
    transform: scale(1.2);
}

/* About Us Page Styles */
.about-header {
    min-height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* About Page Wave Animation (Unique Classes to avoid conflict) */
.about-waves {
    display: block;
    width: 100%;
    height: 60px;
    position: relative;
    margin-bottom: -1px;
}



.about-header .overlay {
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.about-content {
    background-color: #212529;
    /* Bootstrap dark */
    color: #f8f9fa;
    /* Bootstrap light */
    padding: 3rem 0;
    min-height: 1000px;
    height: 1000px;
    overflow-y: auto;
}

.about-footer {
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* About Page Fish Animation */


.about-footer .overlay {
    background: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Services / Features Section */
.icon-square {
    width: 3rem;
    height: 3rem;
    border-radius: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Product Card Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
    /* Allow clicks to pass through */
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-content {
    pointer-events: auto;
    /* Re-enable clicks for the icon */
    background-color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #333;
    text-decoration: none;
}

.product-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 1.5rem;
}

/* Article Content Customization */
.article-content p {
    font-size: 0.9rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 700;
}

/* Navbar Centering */
@media (min-width: 992px) {
    .absolute-center-lg {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Article Breakout Image */
@media (min-width: 992px) {
    .breakout-image-right {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 50vw;
        z-index: 1;
    }

    .text-card-wrapper {
        position: relative;
        z-index: 2;
    }

    /* Float Breakout Logic for Text Wrap */
    .float-breakout-right {
        float: right;
        width: 50%;
        margin-right: -4rem;
        /* Mild breakout */
        margin-left: 2rem;
        margin-top: -200px;
        position: relative;
        z-index: 10;
        clear: right;
    }
}

/* ===============================================
   Contact Page Styles (Moved from inline)
   =============================================== */

/* Hide particles and footer for contact page, but show navbar */
body.page-template-template-contact #particles-js,
body.page-template-template-contact .cb-slideshow,
body.page-template-template-contact footer {
    display: none !important;
}

/* Ensure form controls have a bottom border animation or style */
.form-control:focus {
    border-color: #6366f1 !important;
}

/* Button Hover Effect */
#send-button {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

#send-button:hover {
    background: linear-gradient(45deg, #4f46e5, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5) !important;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .page-template-template-contact .col-lg-6.position-relative {
        min-height: 400px;
    }
}

/* Fix for Particle Animation alignment */
.particles {
    display: inline-block !important;
    width: auto !important;
    position: relative;
}

.particles-wrapper {
    display: inline-block !important;
    width: auto !important;
}

.particles-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    z-index: 1000;
    pointer-events: none;
    padding: 0 !important;
}

/* Resize Icon Wrapper */
.textarea-wrapper {
    position: relative;
}



/* Dark Mode Form Styles - Specific Fix */
[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-control {
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.5) !important;
    background-color: transparent !important;
}

[data-theme="dark"] .form-control::placeholder,
body[data-theme="dark"] .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
}

/* Ensure input autofill background is dark in dark mode */
[data-theme="dark"] input:-webkit-autofill,
[data-theme="dark"] input:-webkit-autofill:hover,
[data-theme="dark"] input:-webkit-autofill:focus,
[data-theme="dark"] input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* About Sidebar Separator */
.sidebar-wrapper>.about-sidebar-divider:last-child {
    display: none;
}

/* Hyperion Button Effect */
.button--hyperion {
    font-family: inherit;
    font-weight: 500;
    padding: 3px 1.5rem 7px 1.5rem;
    /* Aggressive adjustment: 3px top, 7px bottom to move text UP */
    /* Adjusted padding for btn-sm feel */
    border: 1px solid var(--color-primary, #6366f1);
    overflow: hidden;
    color: var(--color-primary, #6366f1);
    background: transparent;
    border-radius: 50px;
    display: inline-flex;
    /* Flexbox for perfect centering */
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.875rem;
    /* line-height removed to let padding control height */
    position: relative;
    transition: color 0.3s;
}

.button--hyperion:hover {
    color: #fff;
}

.button--hyperion span {
    display: block;
    position: relative;
    z-index: 10;
}

.button--hyperion>span {
    overflow: hidden;
}

.button--hyperion>span>span {
    overflow: hidden;
    display: block;
}

/* Animation Keys */
.button--hyperion:hover>span>span {
    animation: MoveUpInitial 0.2s forwards, MoveUpEnd 0.2s forwards 0.2s;
}

@keyframes MoveUpInitial {
    to {
        transform: translate3d(0, -105%, 0);
    }
}

@keyframes MoveUpEnd {
    from {
        transform: translate3d(0, 100%, 0);
    }

    to {
        transform: translate3d(0, 0, 0);
    }
}

/* Background Slide */
.button--hyperion::before {
    content: '';
    background: var(--color-primary, #6366f1);
    transition: transform 0.3s cubic-bezier(0.7, 0, 0.2, 1);
    transform-origin: 0% 50%;
    /* From Left */
    position: absolute;
    /* Expanding slightly to cover sub-pixel gaps in Firefox */
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    transform: scale3d(0, 1, 1);
    /* Start hidden */
    z-index: 0;
}

.button--hyperion:hover::before {
    transform: scale3d(1, 1, 1);
    /* Slide in */
}

/* Navbar Hover Effect (Ritchie Jacobs Button 2) */
.navbar-nav .nav-link {
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Ensure text is above background */
    transition: color 0.3s 0.1s ease-out;
}

/* Navbar Hover Effect (Button 6) */
.navbar-nav .nav-link {
    position: relative;
    z-index: 1;
    border: none !important;
    /* Remove default border to rely on pseudo-element */
    background: transparent;
    overflow: visible;
    transition: all 0.3s ease;
}

/* Background (Fades In & Scales Down) */
.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: scale(1.3, 1.3);
    transition: transform 0.3s, opacity 0.3s;
    z-index: -1;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    opacity: 1;
    transform: scale(1, 1);
}

/* Border (Shrinks & Fades Out) */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
    z-index: -1;
    box-sizing: border-box;
    transform: scale(1, 1);
    opacity: 1;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scale(0, 0);
    opacity: 0;
}

/* Footer Text Links (WP Menu) */
.footer-text-links li a {
    text-decoration: none;
    font-size: 14px;
    color: #ffffff;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-text-links li a:hover {
    opacity: 1;
    color: #ffffff !important;
}

/* Vertical Separator between menu items */
.footer-text-links li:not(:last-child)::after {
    content: "|";
    display: inline-block;
    margin-left: 1rem;
    /* matches gap-3 approx */
    color: #ffffff;
    opacity: 0.5;
}