/*
Theme Name: Virical Theme
Theme URI: https://auralighting.vn
Author: Virical
Author URI: https://auralighting.vn
Description: Custom WordPress theme for Virical company website
Version: 1.0
License: GPL v2 or later
Text Domain: virical
*/

/* CSS Variables */
:root {
    --ast-global-color-0: #d94948;
    --ast-global-color-1: #e93333;
    --ast-global-color-2: #011627;
    --ast-global-color-3: #1e1e1e;
    --ast-global-color-4: #ffffff;
    --ast-global-color-5: #f9f8f8;
    --ast-global-color-6: #f2f5f7;
    --ast-global-color-7: #424242;
    --ast-global-color-8: #000000;
    --primary-color: #d94948;
    --secondary-color: #011627;
    --text-color: #1e1e1e;
    --light-bg: #f9f8f8;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Product Navigation Bar Styles - Professional and Optimized */
.product-navigation-bar {
    background-color: #1a1a1a;
    padding: 12px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
}

/* Navigation wrapper */
.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation list */
.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

/* Navigation items */
.nav-item {
    position: relative;
}

/* Navigation links */
.nav-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 4px;
    white-space: nowrap;
}

/* Hover and active states */
.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
    transform: translateY(-1px);
}

.nav-item.active .nav-link {
    background-color: #d94948;
    color: #ffffff;
}

/* First item (TẤT CẢ) special styling */
.nav-item:first-child .nav-link {
    background-color: #d94948;
    color: #ffffff;
    font-weight: 600;
}

.nav-item:first-child .nav-link:hover {
    background-color: #c73938;
    transform: translateY(-1px);
}

/* Responsive design for tablets */
@media (max-width: 1024px) {
    .nav-wrapper {
        padding: 0 15px;
    }
    
    .nav-list {
        gap: 3px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .nav-link {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .product-navigation-bar {
        padding: 10px 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: 12px 20px;
        text-align: left;
        border-radius: 0;
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.05);
        transform: none;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .nav-link {
        font-size: 12px;
        padding: 10px 15px;
    }
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-navigation-bar {
    animation: fadeIn 0.3s ease-out;
}

/* Scrolled state - make navbar more compact */
.product-navigation-bar.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.product-navigation-bar.scrolled .nav-link {
    padding: 8px 16px;
    font-size: 13px;
}

/* Focus styles for accessibility */
.nav-link:focus {
    outline: 2px solid #d94948;
    outline-offset: 2px;
}

/* Divider between items (optional) */
.nav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -2.5px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Remove divider on mobile */
@media (max-width: 768px) {
    .nav-item:not(:last-child)::after {
        display: none;
    }
}

/* Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

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

a:hover {
    color: var(--ast-global-color-1);
}

/* Container */
.container,
.ast-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    transition: all 0.4s ease;
    box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

/* Transparent header for homepage */
body.home .site-header {
    position: absolute;
    background: transparent;
    box-shadow: none;
}

body.home .site-header.scrolled {
    position: fixed;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

.main-header-bar {
    padding: 20px 0;
    transition: all 0.3s ease;
}

.site-header.scrolled .main-header-bar {
    padding: 15px 0;
}

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

/* Logo */
.site-branding {
    flex-shrink: 0;
}

.site-logo-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.logo-text {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #333333;
    line-height: 1;
    transition: color 0.3s ease;
}

.logo-tagline {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 1px;
    color: #666666;
    margin-top: 2px;
    transition: color 0.3s ease;
}

body.home .site-header:not(.scrolled) .logo-text,
body.home .site-header:not(.scrolled) .logo-tagline {
    color: #ffffff;
}

.site-logo {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.site-header.scrolled .site-logo {
    height: 50px;
}

.transparent-logo {
    display: none;
}

body.home .site-header:not(.scrolled) .default-logo {
    display: none;
}

body.home .site-header:not(.scrolled) .transparent-logo {
    display: block;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.5px;
    color: #333333;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

body.home .site-header:not(.scrolled) .nav-menu a {
    color: #ffffff;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: 20px;
}

.menu-toggle-icon {
    width: 28px;
    height: 20px;
    position: relative;
}

.menu-toggle-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

body.home .site-header:not(.scrolled) .menu-toggle-icon span {
    background: #ffffff;
}

.menu-toggle-icon span:nth-child(1) { top: 0; }
.menu-toggle-icon span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle-icon span:nth-child(3) { bottom: 0; }

.menu-toggle.active .menu-toggle-icon span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-toggle-icon span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Content */
.site-content {
    min-height: 100vh;
    padding-top: 100px;
}

body.home .site-content {
    padding-top: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: #000;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
}

.slide-title {
    font-size: 5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.slide-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease 0.2s both;
}

.slide-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.slide-button:hover {
    background: var(--ast-global-color-1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(217, 73, 72, 0.3);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* Featured Products */
.featured-products-section {
    background: var(--light-bg);
}

.products-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-card-content {
    padding: 25px;
    text-align: center;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.product-code {
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Categories Section */
.categories-section {
    padding: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.category-item {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.category-item:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    padding: 40px;
    transition: background 0.3s ease;
}

.category-item:hover .category-overlay {
    background: linear-gradient(to bottom, rgba(217,73,72,0.8), rgba(217,73,72,0.9));
}

.category-overlay h3 {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: #ffffff;
}

.category-overlay p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Projects Section */
.projects-showcase {
    background: var(--light-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover img {
    transform: scale(1.05);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #ffffff;
    padding: 40px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.project-item:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.project-info p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Buttons */
.button,
.view-all-button {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.button:hover,
.view-all-button:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(217, 73, 72, 0.3);
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

/* Footer */
.site-footer {
    background: var(--secondary-color);
    color: #ffffff;
    padding: 60px 0 30px;
}

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

.footer-widget h3 {
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-widget ul {
    list-style: none;
}

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

.footer-widget a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }
    
    .primary-menu-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 10000;
        overflow-y: auto;
    }
    
    .primary-menu-container.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 100px 30px 30px;
    }
    
    .nav-menu li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu a {
        display: block;
        padding: 20px 0;
        color: var(--secondary-color) !important;
        font-size: 16px;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .slide-title {
        font-size: 3rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-carousel {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-subtitle {
        font-size: 1.2rem;
    }
    
    .category-overlay h3 {
        font-size: 2rem;
    }
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* WordPress Core */
.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}