/*
Theme Name: WireStyler
Theme URI: https://wirestyler.ca
Author: Jared Lang (@wirestyler)
Author URI: https://wirestyler.ca
Description: A WordPress theme for digital design, featuring Three.js integration.
Version: 1.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wirenode
*/

/* Reset some basic elements for consistency across browsers */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f5f5f5;
    background-color: #070027;
    margin: 0;
    padding: 0;
}

/* General container settings */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
/* Header Styling 
.site-logo img {
    max-height: 100%;  Ensures the logo fits within the header's height 
    height: auto;  Maintains the aspect ratio of the logo 
    width: auto;  Ensures the width adjusts based on the height 
    display: block; /* Removes any extra space around the image 
}
*/
/* --- Sticky Header (Desktop) --- */
/* --- Sticky Header Fix --- */
.site-header {
    position: fixed;
    height: 160px;  /*Header height */
    color: #fff;
    /*height: auto;  Ensure the full height of the header is displayed */
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    background-image: url('https://www.wirestyler.ca/wp-content/themes/wirenode/assets/images/a1.gif');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: top center;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

/* Ensure the header content is fully visible */
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo Fix */
.site-logo img {
    max-height: 60px; /* Adjust height for full visibility */
    width: auto;
    display: block;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-container {
    flex: 1;
    text-align: left;
}

.logo-container {
    flex: 1;
    /* text-align: right; */
}

/* Fixing Navigation Visibility */
.desktop-nav {
    display: flex;
    align-items: center;
}

.desktop-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.desktop-menu li {
    display: inline;
}

.desktop-menu li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    transition: color 0.3s, transform 0.3s;
}

/* Fix for overlapping content */
.site-content {
    padding-top: 80px; /* Adds space to prevent overlap */
}

/* --- Mobile Header Display Fix --- */
@media (max-width: 768px) {
    .site-header {
        padding: 10px;
        height: auto; /* Prevents height from being too small */
    }

    .desktop-nav {
        display: none; /* Hide desktop nav on small screens */
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        background: rgba(255, 255, 255, 0.151);
        backdrop-filter: blur(8px);
        padding: 10px;
        border-radius: 15px;
        z-index: 1000;
    }
}

.mobile-bottom-nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding: 0;
    margin: 0;
}

.mobile-bottom-nav li {
    flex: 1;
    text-align: center;
}

.mobile-bottom-nav a {
    color: white;
    font-size: 24px;
    display: block;
    text-decoration: none;
    padding: 10px;
    transition: color 0.3s, transform 0.3s;
}

.mobile-bottom-nav a:hover {
    color: #ff6600;
    transform: scale(1.2);
}

/* --- Mobile Dropdown Menu (More Button) --- */
.menu-toggle {
    position: relative;
}

.menu-toggle .mobile-dropdown {
    display: none;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    border-radius: 10px;
    list-style: none;
    width: 180px;
    text-align: center;
}

.menu-toggle:hover .mobile-dropdown {
    display: block;
}

.mobile-dropdown li {
    padding: 10px 0;
}

.mobile-dropdown a {
    font-size: 18px;
}

/* --- Responsive Styling --- */
@media (max-width: 768px) {
    .site-header {
        padding: 10px;
    }

    .desktop-nav {
        display: none; /* Hide desktop nav on small screens */
    }
}


.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul li {
    margin-left: 20px;
}

.main-navigation ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s ease;
}

.main-navigation ul li a:hover {
    background-color: #415a77;
}

/* Footer styling */
.site-footer {
    background-color: #222;
    color: #aaa;
    padding: 30px 0;
    text-align: center;
}

.site-footer a {
    color: #aaa;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

/* Content area styling */
.site-main {
    background-color: #fff;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Full-page hero section */
.hero {
    height: 100vh; /* Full viewport height */
    background-image: url('https://www.wirestyler.ca/wp-content/uploads/2024/09/coding-computer-hacker-hacking-html-programmer-1366057-pxhere.com_-scaled.jpg'); /* Replace with your image */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay for better text contrast */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.hero .btn {
    padding: 10px 25px;
    background-color: #ff6600;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.hero .btn:hover {
    background-color: #ff4500;
}

/* Fade-in effect for the entire section */
.about-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s ease-out forwards;
    background-color: #070027;
    padding: 60px 20px;
    text-align: center;
    margin-top: 50px;
}

/* Keyframes for fade-in */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Heading animation */
.animate-heading {
    font-size: 2.5rem;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.3s;
}

/* Paragraph animation */
.animate-paragraph {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.6s;
}

/* Button hover effect */
.animate-btn {
    padding: 10px 25px;
    background-color: #ff6600;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.9s;
}

.animate-btn:hover {
    background-color: #ff4500;
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Keyframes for fading in the elements */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Services Section Styling */
.services-section {
    padding: 80px 20px;
    background-color: none;
    text-align: center;
}

.services-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.services-section h3 {
    font-size: 1.8rem;
    margin-bottom: 40px;
}

/* Service Listings Container */
.service-listings {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Each Service Item */
/* Default styling for service-item */
.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #333;
    background-color: #f5f5f5; /* Default background color */
    padding: 30px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1); /* Internal drop shadow */
    border-radius: 10px;
    overflow: hidden;
    transition: background-image 0.5s ease, background-color 1.5s ease; /* Smooth transition */
}

/* Background image on hover */
.service-item:hover {
    background-image: url('https://www.wirestyler.ca/wp-content/themes/wirenode/assets/images/a4.gif');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: top center;
    color: orange;
    background-color: transparent; /* Make the background transparent when hovered */
}

/* Text Styling */
.service-text {
    flex: 1;
    padding-right: 20px;
    text-align: left;
}

.service-text h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-text p {
    font-size: 1.1rem;
}

/* Image Styling */
.service-image {
    flex: 1;
    text-align: right;
    height: 300px; /* Set the desired height of the container */
    overflow: hidden;
}

.service-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .service-item {
        flex-direction: column;
        text-align: center;
    }

    .service-text {
        padding-right: 0;
    }

    .service-image {
        margin-top: 20px;
    }
}

/* Reversed Layout for SEO (Middle Service) */
.service-item.reverse {
    flex-direction: row-reverse;
}

/* Button Styling */
.btn {
    padding: 12px 30px;
    background-color: #ff6600;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 40px;
    display: inline-block;
}

.btn:hover {
    background-color: #ff4500;
    transform: scale(1.05);
}

/* Carousel Services Styles */
.carousel-services {
    --carousel-transition-duration: 250ms;
    --carousel-transition-ease: ease-out;
    --carousel-bg-color-rgb: 0, 0, 0;
    --carousel-item-width: 11.5rem;
    --carousel-item-height: 17.5rem;
    --carousel-item-hover-effect: 1.075;
    --carousel-diameter: 50rem;
    perspective: 1000px;
    width: var(--carousel-diameter);
    height: var(--carousel-diameter);
    position: relative;
    margin: 0 auto;
}

.carousel-wrapper {
    transform-style: preserve-3d;
}

.carousel-items {
    position: relative;
    list-style: none;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.carousel-item {
    position: absolute;
    transform: rotateY(calc(360deg / var(--_num-elements) * var(--_index))) translateZ(25rem);
    width: var(--carousel-item-width);
    height: var(--carousel-item-height);
    background-size: cover;
    background-position: center;
}

.carousel-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-indent: -9999px;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    color: #fff;
    padding: 10px;
    text-align: center;
}

@keyframes rotate-carousel {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

/* Recent Posts Section */
.recent-posts {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.recent-posts .posts-grid {
    display: flex;
    gap: 20px;
}

.recent-posts h2 {
    text-align: center;
    margin-bottom: 40px;
}

/* Call to Action Section */
.cta {
    background-color: #333;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta .btn {
    padding: 10px 20px;
    font-size: 1.2rem;
    background-color: #ff6600;
    color: #fff;
    border: none;
    cursor: pointer;
}

.cta .btn:hover {
    background-color: #ff4500;
}

/* Footer */
footer {
    background-color: #222;
    color: #ccc;
    padding: 20px 0;
    text-align: center;
}

footer a {
    color: #ff6600;
}

footer a:hover {
    color: #ff4500;
}

/* Responsive styles */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-navigation ul {
        flex-direction: column;
        width: 100%;
    }

    .main-navigation ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .site-header .site-title {
        font-size: 2rem;
    }

    .site-header .site-description {
        font-size: 1rem;
    }
}