/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Container Fixes */
.container {
    width: 100%;
    max-width: 1200px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.row {
    margin-right: -15px;
    margin-left: -15px;
    width: auto;
}

/* Navbar Styles */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    width: 100%;
}

.navbar-brand {
    margin-left: 5%;
}

.navbar-brand img {
    height: 65px;
    width: auto;
}

@media (max-width: 992px) {
    .navbar-brand {
        margin-left: 0;
    }
    .navbar-brand img {
        height: 50px;
    }
}

/* Parallax Section */
.parallax-section {
    position: relative;
    background-attachment: fixed !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    height: auto;
    min-height: 400px;
    z-index: 1;
}

/* Parallax Video Section */
.parallax-video-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-video-section .video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.parallax-video-section .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.parallax-video-section .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: -1;
}

.parallax-video-section .parallax-content {
    text-align: center;
    color: var(--off-white);
    z-index: 1;
    padding: 0 15px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.parallax-video-section .parallax-content h2 {
    color: white;
    margin-bottom: 20px;
}

.parallax-video-section .parallax-content p {
    color: white;
    margin-bottom: 30px;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

/* Simplified Animations */
.fade-in {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.fade-in.appear {
    opacity: 1;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #b87333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Section Padding */
.section-padding {
    padding: 80px 0;
    width: 100%;
    overflow: hidden;
}

/* Card and Content Fixes */
.card {
    width: 100%;
    margin: 0;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* Gallery Fixes */
.gallery-container {
    width: 100%;
    padding: 0 15px;
}

.gallery-item {
    margin-bottom: 30px;
    width: 100%;
}

/* Footer Fixes */
.footer {
    width: 100%;
    overflow: hidden;
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .container {
        padding-right: 10px;
        padding-left: 10px;
    }
    
    .row {
        margin-right: -10px;
        margin-left: -10px;
    }
    
    [class*="col-"] {
        padding-right: 10px;
        padding-left: 10px;
    }
}

/* Remove AOS animations */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* General Styles */
:root {
    --dark-graphite: #1c1c1c;
    --slate-gray: #505050;
    --light-granite: #d9d9d9;
    --off-white: #f5f5f5;
    --accent-copper: #b87333;
    --smoky-blue-gray: #8ca3af;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--slate-gray);
    background-color: var(--off-white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-graphite);
    position: relative;
    z-index: 5;
}

.section-padding {
    padding: 80px 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* Animations - optimized for better performance */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.slide-in-left.appear {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.slide-in-right.appear {
    opacity: 1;
    transform: translateX(0);
}

/* Navbar */
.navbar .nav-link {
    color: var(--dark-graphite) !important;
    font-weight: 500;
    padding: 8px 15px !important;
    position: relative;
    z-index: 10;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #b87333 !important;
}

.navbar-toggler {
    border-color: var(--light-granite);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: #333;
    z-index: 1;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    padding: 0 15px;
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: white;
    position: relative;
    z-index: 5;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.breadcrumb-item a {
    color: white !important;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white !important;
}

.btn-primary {
    background-color: var(--accent-copper);
    border-color: var(--accent-copper);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    z-index: 10;
}

.btn-primary:hover {
    background-color: #a06329;
    border-color: #a06329;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    color: white;
    border-color: white;
    background-color: transparent;
    padding: 12px 30px;
    font-weight: 600;
    border-width: 2px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    color: #333;
    background-color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* About Section */
.about-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-img img {
    width: 100%;
    height: auto;
    transition: transform 0.5s;
}

.about-img:hover img {
    transform: scale(1.05);
}

.section-title {
    margin-bottom: 50px;
    z-index: 10000;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    z-index: 50;
}

.section-title h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--accent-copper);
}

.section-title.text-center h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Services Section */
.service-card {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    background-color: #fff;
    margin-bottom: 30px;
    height: 100%;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--accent-copper);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(184, 115, 51, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 30px;
    color: var(--accent-copper);
}

/* Products Section */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-weight: 600;
    margin-bottom: 15px;
}

/* Gallery Section */
.gallery-item {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    will-change: transform;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-item video {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    z-index: 5;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 40px;
    color: white;
    z-index: 6;
}

/* Parallax Section - optimized for better performance */
.parallax-content {
    text-align: center;
    color: var(--off-white);
    padding: 100px 0;
    position: relative;
    z-index: 5;
}

.parallax-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    position: relative;
    z-index: 5;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.parallax-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: white;
    position: relative;
    z-index: 5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Contact Section */
.contact-form .form-control {
    border: 1px solid var(--light-granite);
    border-radius: 5px;
    padding: 15px;
    font-size: 14px;
    margin-bottom: 20px;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--accent-copper);
}

.contact-info {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    height: 100%;
    transition: all 0.3s;
}

.contact-info:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-info i {
    color: var(--accent-copper);
}

/* Footer */
.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-address {
    margin: 20px 0;
    line-height: 1.8;
}

.get-directions-btn {
    display: inline-block;
    background-color: #b87333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.get-directions-btn:hover {
    background-color: #a66529;
    color: #fff;
}

.footer h4 {
    color: var(--off-white);
    margin-bottom: 20px;
}

.footer-contact-info {
    margin-bottom: 30px;
}

.footer-contact-info i {
    margin-right: 10px;
    color: var(--accent-copper);
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--light-granite);
    margin-right: 10px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--accent-copper);
    transform: translateY(-3px);
    color: var(--off-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}

.footer a {
    color: var(--light-granite);
    text-decoration: none;
    transition: all 0.3s;
}

.footer a:hover {
    color: var(--accent-copper);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
}

/* Lightbox styles */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

.lightbox-container {
    max-width: 70%;
    max-height: 70%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -50px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background-color: rgba(0,0,0,0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    border: none;
}

/* Alert styles */
.alert {
    z-index: 9999;
}

/* Responsive Styles - improved for mobile first */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .parallax-content h2 {
        font-size: 2.5rem;
    }
    
    .nav-link {
        margin: 5px 0;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .about-img {
        margin-bottom: 30px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .parallax-content h2 {
        font-size: 2rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .col-md-4, .col-md-6, .col-lg-4, .col-lg-6 {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 575px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn-primary, .btn-outline-light {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .parallax-content h2 {
        font-size: 1.8rem;
    }
    
    .parallax-content p {
        font-size: 1rem;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* Success Message Styles */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Fix for any potential horizontal scrolling issues */
.row {
    margin-right: 0;
    margin-left: 0;
}

[class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .container {
        padding-right: 10px;
        padding-left: 10px;
    }
    
    .row {
        margin-right: -10px;
        margin-left: -10px;
    }
    
    [class*="col-"] {
        padding-right: 10px;
        padding-left: 10px;
    }
}

/* Testimonials */
.testimonial-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    height: 100%;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--accent-copper);
}

.testimonial-content {
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content i {
    color: var(--accent-copper);
    font-size: 24px;
    margin-bottom: 15px;
    display: block;
}

.testimonial-content p {
    font-style: italic;
    color: var(--slate-gray);
    margin-bottom: 0;
}

.testimonial-author h5 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-graphite);
}

.testimonial-author p {
    color: var(--slate-gray);
    margin-bottom: 0;
    font-size: 14px;
}

/* Links */
a, .btn, button {
    position: relative;
    z-index: 5;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
} 