/* Global Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --light-gray: #f3f4f6;
    --dark-gray: #1f2937;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Fix for fixed header overlapping anchor targets */
[id] {
    scroll-margin-top: 80px; /* Adjust this value to match your header's height */
}

/* Logo Styles */
.navbar-brand .logo {
    width: auto;
    height: 50px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .navbar-brand .logo {
        height: 40px;
    }
    .navbar-brand .brand-text {
        font-size: 0.9rem;
    }
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* parallax Section */
.parallax-image-section {
  background-image: url('images/hero-1.jpg');
  height: 100vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Hero Section */
.hero-section {
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed; /* Parallax effect */
  background-position: center center;
  position: relative;
  height: 100vh;
}

.hero-section .overlay {
  background-color: rgba(0, 0, 0, 0.6); /* dark overlay */
}

.hero-content {
  padding-top: 150px;
  padding-bottom: 150px;
}

.hero-content h1, 
.hero-content p {
  animation: fadeInUp 1.2s ease-in-out;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-card img {
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

/* Why Choose Us Section */
.why-us i {
    transition: transform 0.3s ease;
}

.why-us .col-md-3:hover i {
    transform: scale(1.1);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer Styles */
.footer {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.9)), url('../images/footer-bg.jpg') center/cover;
    background-attachment: fixed;
}

.footer-info p {
    color: #ccc;
    line-height: 1.8;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    position: relative;
    padding-bottom: 15px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-link-list a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.footer-link-list a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-link-list i {
    font-size: 12px;
}

.contact-info .info-item h5 i {
    transition: transform 0.3s ease, color 0.3s ease;
}
.contact-info .info-item:hover h5 i {
    transform: scale(1.2);
    color: #ff5722; /* Change this to your preferred accent colour */
}

/* Input fields and button enhancements */
.contact-form input.form-control,
.contact-form textarea.form-control,
.contact-form select.form-select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input.form-control:focus,
.contact-form textarea.form-control:focus,
.contact-form select.form-select:focus {
    border-color: #ff5722;
    box-shadow: 0 0 8px rgba(255,87,34,0.5);
}
.contact-form button.btn-primary {
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.contact-form button.btn-primary:hover {
    background-color: #e64a19;
    transform: translateY(-2px);
}

/* Map container styling */
.map-container {
    border: 3px solid #ff5722;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.map-container:hover {
    transform: scale(1.02);
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
}

.footer-bottom p {
    color: #ccc;
    margin: 0;
}

.text-gradient {
    background: linear-gradient(to right, #ff6a00, #ee0979);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-icon {
    font-size: 1.3rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bg-pink {
    background-color: #ec407a;
}

.bg-orange {
    background-color: #ff7043;
}

.bg-blue {
    background-color: #42a5f5;
}

.bg-purple {
    background-color: #ab47bc;
}

.animate-fadein {
    animation: fadeInUp 0.9s ease-in-out both;
}

@keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

/* Responsive Footer Adjustments */
@media (max-width: 768px) {
    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links,
    .footer-contact {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-link-list a:hover {
        transform: none;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-products .card,
.why-us .col-md-3 {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content {
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .why-us .col-md-3 {
        margin-bottom: 2rem;
    }
}

/* Clients Section */
.client-logo {
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.client-logo img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* SEO Improvements */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Schema Markup Styles */
.schema-rating {
    color: var(--primary-color);
    font-weight: bold;
}

/* Product Details Page */
.product-gallery {
    margin-bottom: 2rem;
}

.product-gallery-main {
    margin-bottom: 1rem;
}

.product-gallery-thumbs img {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.active {
    border-color: var(--primary-color);
}

.product-details-tabs {
    margin-top: 3rem;
}

.product-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.product-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-documents {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 5px;
}

.product-documents .document-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: white;
    margin-bottom: 0.5rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.product-documents .document-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-documents .document-icon {
    margin-right: 1rem;
    color: var(--primary-color);
}

.product-pricing {
    background: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-pricing .price-tag {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* YouTube Videos Section */
.youtube-videos {
    background: linear-gradient(to right, #f8f9fa, #ffffff, #f8f9fa);
}

.video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.5rem;
}

.video-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark-gray);
    font-weight: 600;
}

.video-info p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive adjustments for videos */
@media (max-width: 768px) {
    .video-card {
        margin-bottom: 2rem;
    }
    
    .video-info {
        padding: 1.25rem;
    }
    
    .video-info h4 {
        font-size: 1.1rem;
    }
}

/* Statistics Section */
.statistics {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.stat-item {
    padding: 2rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    color: rgba(255, 255, 255, 0.9);
}

.stat-item .counter {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.stat-item p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Page Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Image hover effects */
.product-card img {
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Improved Typography */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(to right, #f8f9fa, #ffffff, #f8f9fa);
}

.testimonial-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.author-info h5 {
    margin: 0;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.author-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
.testimonial-card,
.stat-item,
.product-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add animation delays for cards */
.testimonial-card:nth-child(1) { animation-delay: 0.2s; }
.testimonial-card:nth-child(2) { animation-delay: 0.4s; }
.testimonial-card:nth-child(3) { animation-delay: 0.6s; }
