﻿/* style.css */

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: #f0f2f5; /* Light gray background for context */
    color: #334155; /* Dark text color */
    min-height: 100vh; /* Ensure body takes full height for sticky header demo */
}

/* Custom styles for better visual appeal */
.header-shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
    padding-bottom: 8px;
    transition: color 0.3s ease-in-out;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #0505c9; /* Underline color changed to #0505c9 */
    transition: width 0.3s ease-in-out;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active::after {
    width: 100%;
    background-color: #0505c9; /* Active underline color changed to #0505c9 */
}

/* Mobile menu button animation */
.hamburger-line {
    width: 28px;
    height: 3px;
    background-color: #334155;
    display: block;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.hamburger.open .line-top {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open .line-middle {
    opacity: 0;
}

.hamburger.open .line-bottom {
    transform: translateY(-8px) rotate(-45deg);
}

/* Styles for the new sections */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://placehold.co/1920x1080/1e3a8a/ffffff?text=Professional+Business+Background') no-repeat center center/cover;
    background-size: cover; /* Ensure background covers the section */
    background-position: center; /* Center the background image */
    color: white;
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 2rem;
    font-weight: 800; /* Make section titles bolder */
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #0505c9; /* Section title underline color */
    border-radius: 2px;
}

.service-card, .portfolio-card, .testimonial-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.service-card:hover, .portfolio-card:hover, .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Slideshow specific styles */
.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    overflow: hidden; /* Crucial for sliding effect */
}

.slides-wrapper {
    display: flex; /* Arrange slides horizontally */
    width: 400%; /* 100% * number of slides (4 in this case) */
    transition: transform 0.8s ease-in-out; /* Smooth transition for sliding */
    height: 700px; /* Fixed height for the wrapper */
}

.mySlides {
    flex: 0 0 25%; /* Each slide takes 1/4 of the wrapper width */
    width: 100%; /* Important for image sizing within the flex item */
    height: 100%; /* Ensure slide fills the wrapper height */
    position: relative; /* For positioning slide text */
    overflow: hidden; /* Hide anything outside the slide area */
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area without distortion */
}

.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    width: 80%;
    max-width: 900px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 28px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.4);
    z-index: 1; /* Ensure buttons are above slides */
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background with a little more opacity */
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active-dot, .dot:hover {
    background-color: #717171;
}

/* Scroll-in animation styles */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.social-button {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    /* Ensure these base styles are present */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px; /* w-16 */
    height: 64px; /* h-16 */
    border-radius: 9999px; /* rounded-full */
    font-size: 1.875rem; /* text-3xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
}

.social-button:hover {
    transform: scale(1.15); /* Slightly larger scale on hover */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* More pronounced shadow */
}


/* Styles for the "Who We Are" section with background image */
.who-we-are-background {
    background-image: url('AboutUs.png'); /* Placeholder image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    position: relative;
    color: white; /* Ensure text is readable on dark background */
    padding-top: 80px; /* Add padding to prevent content from being hidden by header */
    padding-bottom: 80px;
}

.who-we-are-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 0;
}

.who-we-are-background .container {
    position: relative;
    z-index: 1; /* Ensure content is above the overlay */
}

/* Styles for the new product category cards with parallax */
.product-category-card {
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* This creates the parallax effect */
    border-radius: 10px;
    overflow: hidden; /* Ensures content stays within bounds */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* Soft shadow */
    position: relative; /* Needed for pseudo-element positioning */
    display: flex; /* For centering content */
    align-items: center; /* For centering content */
    justify-content: center; /* For centering content */
}

.product-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7); /* Darker overlay */
    z-index: 0; /* Ensure it's behind the text content */
}

/* Card effect for contacts and addresses */
.card-effect {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
