/* Enhanced Modern Styles for Big Brick Digital */

/* Universal Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* -------------------------------------------
   Intro Section
------------------------------------------- */
.intro {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, #e0f7fa, #ffffff);
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    position: relative;
    overflow: hidden;
    color: white;
    z-index: 1;
}

.background-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 50%;
    opacity: 0.1;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}


.intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    animation: pulse 8s infinite ease-in-out;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.intro h1 {
    background: linear-gradient(190deg, #000, #00ffcc, #000, #ff00cc);
      background-size: 300% 300%;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: gradientText 4s linear infinite;
      font-weight: bold;
      font-size: 96px;
      margin-bottom: 20px;
      text-transform: uppercase;
      letter-spacing: 3px;
      display: inline-block;
      position: relative;
      z-index: 1;
      text-shadow: 10 0 8px #00bfff, 0 0 16px #00bfff, 0 10 24px #000;
      transition: transform 0.3s ease, filter 0.3s ease, text-shadow 0.3s ease;
    }
    
    /* Keyframes for the gradient animation */
    @keyframes gradientText {
      0% {
        background-position: 0% 50%;
      }
      50% {
        background-position: 100% 50%;
      }
      100% {
        background-position: 0% 50%;
      }
    }

.intro p {
    font-size: 20px;
    color: #000;
    max-width: 900px;
    margin: 20px auto 0;
    line-height: 1.8;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* -------------------------------------------
   Product Showcase
------------------------------------------- */
.product-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 20px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1), -5px -5px 15px rgba(255, 255, 255, 0.7);
    transition: transform 0.5s, box-shadow 0.5s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e9ecef;
    max-width: 360px;
    overflow: hidden;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.2), -10px -10px 30px rgba(255, 255, 255, 0.8);
}

.product-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    filter: brightness(0.95);
    transition: filter 0.4s, transform 0.4s;
}

.product-card:hover .product-image {
    filter: brightness(1.1) saturate(1.2);
    transform: scale(1.02);
}

.product-card h3 {
    font-size: 26px;
    font-family: 'Poppins', sans-serif;
    color: #1e2a3a;
    margin: 20px;
    text-align: center;
}

.product-card p {
    font-size: 16px;
    color: #666;
    margin: 0 20px 20px;
    line-height: 1.6;
    text-align: justify;
}

.cta-button {
    display: inline-block;
    align-self: center;
    background: linear-gradient(to right, #ff6600, #ff9966);
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    padding: 14px 30px;
    margin: 20px auto;
    border-radius: 30px;
    transition: background 0.3s ease, transform 0.3s ease;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background: linear-gradient(to right, #e04e00, #e0844e);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------
   Responsive Adjustments
------------------------------------------- */
@media (max-width: 768px) {
    .product-showcase {
        grid-template-columns: 1fr;
    }

    .product-card {
        max-width: 100%;
    }

    .intro h1 {
        font-size: 40px;
    }

    .intro p {
        font-size: 16px;
    }
}


/* -------------------------------------------
   Footer
------------------------------------------- */
footer {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(145deg, #1b2735, #1e2a3a);
    color: #ffffff;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

footer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 80%);
    transform: translate(-50%, -50%);
    opacity: 0.3;
    pointer-events: none;
    animation: pulsate 6s infinite ease-in-out;
    z-index: 0;
}

@keyframes pulsate {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

footer .footer-content {
    position: relative;
    z-index: 1;
}

footer p {
    margin: 0 0 10px;
    padding: 0;
    color: #d1d1d1;
    font-size: 16px;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

footer p:hover {
    color: #ffffff;
    text-shadow: 0 3px 8px rgba(255, 255, 255, 0.5);
}

footer a {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s, text-shadow 0.3s;
}

footer a:hover {
    color: #ffaa33;
    text-shadow: 0 3px 8px rgba(255, 165, 0, 0.5);
}

footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: inline-flex;
    gap: 20px;
    justify-content: center;
}

footer .footer-links li {
    display: inline;
}

footer .social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

footer .social-icons a {
    font-size: 18px;
    color: #d1d1d1;
    transition: color 0.3s, transform 0.3s;
}

footer .social-icons a:hover {
    color: #ffffff;
    transform: scale(1.2);
}

/* Responsive Styling */
@media (max-width: 768px) {
    footer p {
        font-size: 14px;
    }
    footer .social-icons a {
        font-size: 16px;
    }
}

/* -------------------------------------------
   Responsive Adjustments
------------------------------------------- */
@media (max-width: 768px) {
    footer {
        padding: 30px 15px;
    }

    footer p {
        font-size: 14px;
    }
}

.product-video-wrapper {
    position: relative;
    width: 100%;
    height: 200px; /* Adjust height as per your design */
    overflow: hidden;
}

.product-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Ensures it stays behind the content */
}


/* Add CSS for loading spinner and smooth transitions */
.product-card {
    position: relative;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    display: block;  /* Default is visible */
}

/* Add a keyframe for the spinning effect */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

img, .product-image {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;  /* Smooth fade-in effect */
}

img.loaded, .product-image.loaded {
    opacity: 1;
}

/* Optional: Placeholder image for lazy loading */
.product-image {
    background-color: #f0f0f0;
    background-image: url('placeholder-image.jpg');  /* Use a low-quality placeholder image */
    background-size: cover;
    background-position: center;
}



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

.intro {
    animation: fadeInUp 1s ease-in-out;
}

.product-card {
    animation: fadeInUp 0.8s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .intro h1 {
        font-size: 36px;
    }

    .product-showcase {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .cta-button {
        padding: 10px 20px;
    }
}