/*
Theme Name: BoxBin
Theme URI: https://boxbin.app
Description: A child theme for Astra Theme
Author: BoxBin Team
Author URI: https://boxbin.app
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boxbin
*/

/* Import Astra Parent Theme Styles */
@import url('../astra/style.css');

/* Custom Variables */
:root {
    --primary-color: #4C6FFF;
    --text-color: #1C1C27;
    --white: #ffffff;
    --header-height: 80px;
    --container-width: 1200px;
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin-top: var(--header-height);
}

.ast-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: rgba(28, 28, 39, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.site-header .ast-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Site Branding */
.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: block;
    padding: 5px 0;
}

.custom-logo {
    max-height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.custom-logo:hover {
    transform: scale(1.05);
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: var(--white);
}

/* Navigation */
.main-navigation {
    margin: 0 auto;
}

.main-header-menu {
    display: flex;
    list-style: none;
    gap: 50px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 30px;
    margin: 0;
}

/* Footer Styles */
/*.site-footer {
    background-color: rgba(28, 28, 39, 0.95);
    padding: 60px 0 20px;
    color: var(--white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
	position: absolute;
	width: 100%;
	margin: 10vh 0px 0px 0px;
}*/

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.footer-section p {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #cccccc;
    font-size: 20px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: var(--primary-color);
    background-color: rgba(76, 111, 255, 0.1);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #cccccc;
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

.main-header-menu > li {
    position: relative;
}

.main-header-menu > li > a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: block;
}

.main-header-menu > li > a:hover,
.main-header-menu > li.current-menu-item > a {
    color: var(--primary-color);
    background-color: rgba(76, 111, 255, 0.1);
}




/* Custom CSS for Astra Content */

/* Hero Section Styles */
.wp-block-astra-blocks-hero {
    background-color: var(--ast-global-color-5);
    position: relative;
    overflow: hidden;
}

.ast-container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
.highlight {
    background-color: #4C6FFF;
    color: #ffffff !important;
    padding: 5px 20px;
    border-radius: 30px;
    display: inline-block;
}

.wp-block-heading h1 {
    font-size: 64px;
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: 700;
}

.wp-block-heading h2 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1C1C27;
    font-weight: 600;
}

/* Feature Slider */
.wp-block-astra-blocks-slider {
    margin: 30px 0;
}

.feature-slider {
    position: relative;
    height: 40px;
    overflow: hidden;
}

.feature-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    font-size: 20px;
    color: #4C6FFF;
    font-weight: 500;
}

.feature-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.feature-slide i {
    margin-left: 10px;
}

/* App Store Buttons */
.app-store-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.app-store-btn-home {
    flex: 1;
}

.app-store-btn-home .wp-block-button__link {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #1C1C27;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.app-store-btn-home .wp-block-button__link:hover {
    background-color: #4C6FFF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 111, 255, 0.3);
}

.app-store-btn-home i {
    font-size: 24px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-text small {
    font-size: 12px;
    opacity: 0.8;
}

/* Hero Image */
.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-5px);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column;
    }

    .wp-block-column {
        flex-basis: 100% !important;
    }

    .wp-block-heading h1 {
        font-size: 48px;
    }

    .wp-block-heading h2 {
        font-size: 36px;
    }

    .feature-slide {
        font-size: 18px;
    }

    .app-store-buttons {
        flex-direction: column;
    }

   .hero-image {
		max-width: 100%;
		height: auto;
		border-radius: 20px;
		transition: transform 0.3s ease;
	}
}

@media screen and (max-width: 480px) {
    .wp-block-heading h1 {
        font-size: 36px;
    }

    .wp-block-heading h2 {
        font-size: 28px;
    }

    .feature-slide {
        font-size: 16px;
    }
}

/* Missing styles */

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-size: 64px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-text h2 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1C1C27;
}


/* fix: feature slider */
.feature-slider {
    position: relative;
    height: 30px;
    overflow: hidden;
    margin: 20px 0;
}

.feature-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(100%);
    animation: slideFeature 15s infinite;
    color: #4C6FFF;
    font-size: 18px;
    font-weight: 500;
}

.feature-slide:nth-child(2) { animation-delay: 3s; }
.feature-slide:nth-child(3) { animation-delay: 6s; }
.feature-slide:nth-child(4) { animation-delay: 9s; }
.feature-slide:nth-child(5) { animation-delay: 12s; }

@keyframes slideFeature {
    0%, 20% {
        opacity: 0;
        transform: translateY(100%);
    }
    3%, 17% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* App Showcase Section */
.app-showcase {
    padding: 80px 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.showcase-item {
    text-align: center;
}

.showcase-item img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.showcase-item:hover img {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(76, 111, 255, 0.2);
}

.showcase-item i {
    font-size: 48px;
    color: #4C6FFF;
    margin-bottom: 25px;
    display: inline-block;
    transition: all 0.5s ease;
}

.showcase-item:hover i {
    animation: showcaseIconFloat 2s ease-in-out infinite;
}

@keyframes showcaseIconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.showcase-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1C1C27;
}

.showcase-item p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 921px) {
    .site-header {
        height: auto;
        padding: 10px 0;
    }

    .main-header-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(28, 28, 39, 0.95);
        padding: 20px 0;
        flex-direction: column;
        gap: 10px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .main-header-menu.toggled {
        display: flex;
    }

    .main-header-menu > li > a {
        padding: 15px 20px;
        border-radius: 0;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--white);
        font-size: 24px;
        cursor: pointer;
        padding: 5px;
    }

    .menu-toggle:hover {
        color: var(--primary-color);
    }
	
	.hero-text {
		text-align: center;
		box-sizing: border-box;
	}
}

/* responsive menu */

/* Hide the hamburger menu icon by default */
.hamburger {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Media query for small screens (responsive) */
@media screen and (max-width: 768px) {
    /* Collapse the main menu into a vertical list */
    .main-header-menu {
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        display: none; /* Hidden by default */
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .main-header-menu li {
        margin: 15px 0;
    }

    /* Show the hamburger icon on small screens */
    .hamburger {
        display: block;
		text-align: right;
    }

    /* Show the menu when it's active */
    .main-header-menu.active {
        display: flex;
    }
}

/* Ensure the body and HTML take up at least 100% of the height */
html, body {
    height: 100% !important;
    margin: 0 !important;
}

/* Make sure the content area takes the full height and pushes footer down */
.site {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

/* Ensure the footer stays at the bottom */
.site-footer {
    margin-top: auto !important;
	background-color: rgba(28, 28, 39, 0.95);
    padding: 60px 0 20px;
    color: var(--white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
	width: 100%;
	position: relative;
    bottom: 0;
    left: 0;
    right: 0; 
}

.entry-content {
    padding-top: 80px !important;
    padding-bottom:220px !important;
    background-color:var(--ast-global-color-5) !important;
}

/* Responsive Design */
/* Make the menu vertical on smaller screens */
@media screen and (max-width: 768px) {
    #primary-menu {
        display: none; /* Hidden by default */
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center the menu items */
        width: 100%; /* Make the menu take full width */
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #272731; /* Change background as needed */
        padding: 20px 0; /* Add padding for the vertical layout */
    }

    #primary-menu.active {
        display: flex; /* Display the menu when active */
		justify-content: center; /* Centers horizontally */
		align-items: center;     /* Centers vertically */
		margin: 0px 0px 0px 49%;
        width: 103%;
    }

    #primary-menu li {
        margin: 10px 0; /* Space items vertically */
    }

    #hamburger {
        display: block; /* Show hamburger icon on small screens */
    }

    #primary-menu a {
        color: white; /* White color for links on dark background */
    }
	
	.main-navigation ul {
		position: absolute;
	}
	
	.site-footer {
		position: relative;
	}
	
	.entry-content {
		flex: 1;
		/*padding-top: 0 !important;*/
		padding-bottom:0 !important;
		background-color:var(--ast-global-color-5) !important;
		margin: 0;
	}
	
}

/* WooCommerce */
.ast-woocommerce-container {
	padding: 3em;
	margin: 10em 0 0 0;
}

.woocommerce-checkout {
   margin: 0 0 10em 0;	
}

.woocommerce a.added_to_cart {
	display: relative !important;
}

/* Style the Cart Count Badge */
.cart-count {
    background-color: #4C6FFF; /* Adjust the background color */
    color: white; /* Text color */
    border-radius: 50%; /* Round shape */
    padding: 3px 8px; /* Adjust padding */
    font-size: 14px; /* Adjust font size */
    margin-left: 5px; /* Space between the cart label and the badge */
}

.cart-count-hidden {
	visibility: hidden;
}

.entry-content {
   padding: 3em;	
}

.woocommerce {
	margin-top: 3em;
}

.app-store-btn-home {
	flex: none;
}


.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: #f0f5f9;
}
