/* General Styling */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1f1f1f;
    color: #ffffff;
    margin: 0 auto;

    background-image: url('bc.jpg');
    /* Full viewport height */
    background-attachment: fixed; /* Fixed background */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent repeating the image */
    background-size: cover; /* Cover the entire element */
    
}
.container {
    /* Restrict content to 1300px width */
    margin: 0 auto; /* Center the container horizontally */
    /* Optional: add some padding on small screens */

   text-shadow: 3px 3px 3px #1a1818;
}
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}



a {
    text-decoration: none;
    color: #ffffff;
}


img.top {
    background-color: transparent; /* Transparent background for the image */
}



/* Always large size */
/* Keyframes for slide-down animation */
@keyframes slideDown {
    0% {
        transform: scale(1.7) translateY(-100%); /* Start above the viewport */
        opacity: 0; /* Invisible */
    }
    100% {
        transform: scale(1.7) translateY(0); /* End at original position */
        opacity: 1; /* Fully visible */
    }
}/* Keyframes for rotation animation */
@keyframes slideDown2 {
    0% {
        transform: translateY(-900%); /* Start above the viewport */
        opacity: 0; /* Invisible */
    }
    100% {
        transform:  translateY(0); /* End at original position */
        opacity: 1; /* Fully visible */
    }
}/* Keyframes for rotation animation */
@keyframes slidein {
    0% {
        transform: translateX(-200%); /* Start above the viewport */
        opacity: 0; /* Invisible */
    }
    100% {
        transform:  translateX(0); /* End at original position */
        opacity: 1; /* Fully visible */
    }
}/* Keyframes for rotation animation */




/* Header Section */
.header {
   
    background-size: cover;
    display: flex;
    justify-content: center; /* Horizontally centers the child elements */
    align-items: center; /* Vertically centers the child elements */
    position: relative; 
    padding: 2rem;
    text-align: center;
}

/* Adjustments to .top */



.hero{
    padding-bottom: 0%;
    height: 600px;
   
    will-change: transform; /* Optimize for transformation changes */
    animation: slidein 1s ease forwards;
}
.hero p{
    font-weight: bold;

}
.nav-menu {
    background-image: url('hd.png'); 
    background-size: cover; /* Scales the image to cover the entire area */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents tiling */
    position: fixed;/* Fix the element at the top */
    top: 0; /* Align it to the top of the window */
    left: 0; /* Make sure it starts from the left edge */
    width: 100%; /* Stretch the nav bar across the full width of the window */
    display: flex;
    justify-content: center;
    gap: 2rem;
   
    
    height: 100px;
   
    z-index: 49; /* Ensure the nav is above other content */
    will-change: transform; /* Optimize for transformation changes */
    animation: slideDown2 1s ease forwards; /* Apply the slide down animation */
    padding-top: 30px;
}
.logo{
    margin-top: -10px;
}
.nav-menu .logo{
    
    height: 50px;
    width: auto;
    }

    canvas {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
    
    }
.nav-menu a{
    
font-size: 20px;
font-weight: bold;
color:#ffffff;
font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
text-shadow: 3px 3px 3px #1a1919;



}

.hero h1 {
    font-size: 2rem;
    margin: 0;
    padding-top: -5%;
}

.hero p {
    font-size: 1.2rem;
    margin: 1rem 0;
}
.dark{
padding-top: 20%;
    background-color: #ff5e0000;
}

.contact-btn {
    background-color: #333;
    border: none;
    color: #fff;
    margin-top: 1%;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color:#FF5C00;
    
}

/* Products Section */
.products-section {
    position: relative; /* Make the section a positioning context */
    padding: 1rem 2rem 5rem; /* Reduce top padding */
    background-color: #FF5C00;
  
    /* Add your background pattern here */
    background-color: #FF5C00;
    background-image: radial-gradient(rgba(255, 255, 255, 0.471) 2px, transparent 0);
    background-size: 30px 30px;
    background-position: -5px -5px;
    padding-bottom: 10px;
    
}
.products-section h3 {
    font-size: 30px;
    display: flex;
   justify-content: center;
   padding-bottom:0vh;
}
.products {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-top: 0rem; /* Use negative margin to move products higher */
}

.product {
    position: relative; /* Positioning context for absolutely positioned elements */
    width: 400px; /* Set a fixed width */
    height: 400px; /* Set a fixed height */
    overflow: hidden; /* Hide overflow for the image */
    box-shadow: 0 0 15px #1a1818; /* Box shadow */
    margin-top: 1rem; /* Optional: add margin for spacing between products */
    transition: box-shadow 0.3s; /* Optional: smooth transition for shadow on hover */
    display: flex; /* Use flexbox for inner content */
    flex-direction: column; /* Stack elements vertically */
    justify-content: flex-end; /* Align items to the bottom */
    text-align: center; /* Center text inside */
}
.product img:hover  {
    transform: scale(1.2); /* Scale the image up on hover */
    transition: transform 0.3s ease;
}
.logoPhone{
    display: none;
}
.product img {
    position: absolute; /* Position the image absolutely */
    top: 0; /* Align to the top of the product block */
    left: 0; /* Align to the left of the product block */
    width: 100%; /* Cover the full width of the product block */
    height: 100%; /* Cover the full height of the product block */
    object-fit: cover; /* Ensure the image covers the box while maintaining aspect ratio */
    z-index: 0; /* Place the image behind text and button */
}

.product-info {
    position: relative; /* Keep the product info on top of the image */
    z-index: 1; /* Ensure these elements appear above the image */
    background: rgba(0, 0, 0, 0.459); /* Optional: semi-transparent background for contrast */
    /* Optional: add padding for spacing */
    width: 100%; /* Ensure it takes full width */
    height: 90px;
}

/* Materials Section */
.materials-section {
    padding: 1rem;
    text-align: center;
}

.materials {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.material {
   
    padding: 5rem;
    border-radius: 50%; /* Rounded shape */
    min-height: 100px; /* Adjust as needed */
    min-width: 100px;
     /* Adjust as needed */
     max-height: 300px; /* Adjust as needed */
     max-width: 300px;
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    flex-direction: column; /* Stack image and text vertically */
    font-size: 1.2rem;
    position: relative; /* Relative position for image */
    overflow: visible;
}

.material img {
    overflow: visible;
    width: 150%; /* Adjust the size of the image */
    height: auto; /* Maintain aspect ratio */
    border-radius: 50%; /* Optional: rounded image edges */
    margin-bottom: 0.5rem; /* Space between image and text */
    filter: drop-shadow(0 2px 10px rgb(0, 0, 0)); /* Drop shadow effect */
}
.material img {
    overflow: visible;
    transition: transform 1s ease; /* Apply transition for both hover and non-hover states */
}

.material:hover img {
    transform: scale(1.3) rotate(30deg); /* Scale and rotate the image on hover */
}
/* Contact Section */
.contact-section {
    padding: 3rem;
    background-color:#FF5C00;
    text-align: center;
    background-color: #FF5C00;
    background-image: radial-gradient(rgba(255, 255, 255, 0.471) 2px, transparent 0);
    background-size: 30px 30px;
    background-position: -5px -5px
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    max-width: 400px;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
}

.contact-form button {
    background-color: #333;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #555;
}

/* Footer Section */
.footer {
    background-color: #222;
    padding: 2rem;
    text-align: center;
    
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer p {
    margin: 0;
}
body {
    overflow-x: hidden;
}
.top img{ /* Adjust this selector to target your image */
    max-width: 100%; /* Ensures the image doesn't exceed the container's width */
    max-height: 150px; /* Set a max height for the image */
    height: auto; /* Maintain aspect ratio */
    padding-top: 30px;
}
.top {
    background-color: #03123100;
    display: flex;
    justify-content: center;
    height: 100%;
    
}

/* Center the container and align cards in a row */
.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem; /* Controls space between cards */
    padding: 2rem; /* Adds padding around the container */
    flex-wrap: wrap;
  
  }
  
  /* Style for individual cards */
  .card {
    width: 300px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #ffffff;
    text-align: center;
    margin: 0.5rem; /* Slight margin to keep cards closer together */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
  }
  .center-r {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;     /* Centers vertically */
    height: 50px; 
              /* Set a height for vertical centering */
  }
  .center-r h3{
    padding-top: 20px;
    font-size: 30px;
  }
  

  /* Star ratings styling */
  .stars {
    display: flex;
    justify-content: center;
    gap: 0.125rem; /* Space between stars */
    color: #ffc107; /* Gold color for stars */
  }
  
  .star {
    height: 1.25rem;
    width: 1.25rem;
  }
  
  /* Information section styling */
  .infos {
    margin-top: 1rem;
  }
  
  /* Date and time styling */
  .date-time {
    color: #073fd8;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  
  /* Description styling */
  .description {
    margin-top: 0.4rem;
    line-height: 1.5;
    color: #6b7280;
  }
  
  /* Author styling */
  .author {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
  }
  
  /* Additional hover effect for cards */
  .card:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease-in-out;
  }
  .rating-score {
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #ffffff;
  }
  
  .score {
    font-size: 2rem; /* Large font for main score */
    font-weight: bold;
    color: #007bff; /* Blue color for score */
  }
  
  .out-of {
    font-size: 1rem; /* Smaller font for /10 */
    color: #ffffff; /* Gray color for /10 */
  }
  
  .review-count {
    font-size: 0.8rem; /* Small font for review count */
    color: #ffffff; /* Lighter gray for review count */
  }
  
  /* Add this to your style.css */

/* Keyframes for sliding in from the left */
/* Keyframes for sliding in from the left */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px); /* Slide from a smaller offset */
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Keyframes for sliding in from the right */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px); /* Slide from a smaller offset */
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Classes to apply the animations */
.animate-left {
    animation: slideInLeft 0.5s forwards;
}

.animate-right {
    animation: slideInRight 0.5s forwards;
}

/* Set initial styles for the blocks */
.product, .material{
    opacity: 0; /* Start hidden */
    transition: opacity 0.5s ease; /* Transition for smooth effect */
}

/* Animation for .card-container to fade in and slide up */
@keyframes opacityGrow {
    from {
        transform: scale(3);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.opacityGrow {
    animation: opacityGrow 2s forwards; /* Adjust duration as needed */
}

  
  @keyframes containerFadeSlideIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Animation for each card with subtle hover scaling effect */
  
  
  @keyframes cardFadeSlideIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  }
  
  /* Star animation */
  .stars .star {
    fill: #FFD700; /* Gold color */
   
 
  
   
}

html {
    scroll-behavior: smooth;
}
.logoPhone {
    display: none; /* Hide the mobile logo by default */
    position: absolute; /* Allow positioning relative to the .top div */
    top: 10px; /* Adjust the top position */
    left: 10px; /* Adjust the left position */
}
/* Mobile Styling */
@media (max-width: 768px) {
    .logoPhone {
        display: block; /* Show the mobile logo */
        max-width: 30%; /* Optional: Ensure mobile logo fits the container */
        height: auto; /* Maintain aspect ratio */
    }
    .hero h2{
        padding-top: 4%;
    }
    .card-container {
        padding: 1rem; /* Adjust padding for smaller screens */
    }

    .center-r h3 {
        font-size: 20px; /* Smaller heading for mobile */
    }

    .description {
        font-size: 0.9rem; /* Slightly smaller text for mobile */
    }

    .score {
        font-size: 1.5rem; /* Smaller score for mobile */
    }
    /* Show the toggle button */
  

    /* Make the nav menu stack vertically */
   
    .logo{
        display: none;
    }
   
    
/* Container for products */
/* Container for the products section */

/* Flex container for products */
.container {
    display: flex; 
    flex-direction: column; /* Stack the heading and products vertically */
    align-items: center; /* Center items horizontally */
}
.product-info {
    /* Additional styling to allow for better text wrapping */
    /* Add some padding for aesthetics */
    flex-grow: 1; /* Allows the info section to take available space */
    display: flex; /* Use flex to center the content */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    text-align: center; /* Center text */
}

.product-info h2 {
    margin: 0; /* Remove default margins */
    font-size: 1.2rem; /* Adjust font size as needed */
    line-height: 1.2; /* Adjust line height for better readability */
    overflow: hidden; /* Hide overflow if needed */
    text-overflow: ellipsis; /* Add ellipsis for overflow text (if desired) */
    white-space: normal; /* Allow text to wrap */
}

/* Container for product items */
.products {
    display: flex; 
    flex-wrap: wrap; /* Allows products to wrap to the next line */
    justify-content: center; /* Centers the products in the container */
    gap: 1rem; /* Controls space between product items */
}

/* Style for individual product items */
.product {
    position: relative;
    min-width: 180px; /* Minimum width for each product */
    max-width: 100px; /* Maximum width for responsive behavior */
    height: 180px; /* Fixed height for product */
    overflow: hidden; /* Hide overflow for the image */
    box-shadow: 0 0 15px #1a1818; /* Box shadow */
    margin: 0.5rem; /* Slight margin for spacing */
    transition: box-shadow 0.3s; /* Smooth transition for shadow on hover */
    display: flex; /* Use flexbox for inner content */
    flex-direction: column; /* Stack elements vertically */
    justify-content: flex-end; /* Align items to the bottom */
    text-align: center; /* Center text inside */
}

.product img {
    width: 100%; /* Make image take the full width of the product */
    height: auto; /* Maintain aspect ratio */
}
.materials-section {
    padding: 1rem;
    text-align: center;
}

.materials {
    display: flex;
    justify-content: center;
    gap: 0rem;
}


.material {

    padding: 2rem;
    border-radius: 50%; /* Rounded shape */
    min-height: 100px; /* Adjust as needed */
    min-width: 100px;
     /* Adjust as needed */
     max-height: 200px; /* Adjust as needed */
     max-width: 200px;
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    flex-direction: column; /* Stack image and text vertically */
    font-size: 0.1rem;
    position: relative; /* Relative position for image */
}
.material h3{

    font-size: 1.3rem;
  
}
.material img {
    width: 100%; /* Adjust the size of the image */
    height: auto; /* Maintain aspect ratio */
    border-radius: 50%; /* Optional: rounded image edges */
    margin-bottom: 0.5rem; /* Space between image and text */
    filter: drop-shadow(0 2px 10px rgb(0, 0, 0)); /* Drop shadow effect */
}
.nav-item{
    margin-top: -2%;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
@media (max-width: 411px) {
    .materials-section {
        padding: 1rem;
        text-align: center;
    }
    
    .materials {
        display: flex;
        justify-content: center;
        gap: 0rem;
    }


    .material {
   
        padding: 2rem;
        border-radius: 50%; /* Rounded shape */
        min-height: 100px; /* Adjust as needed */
        min-width: 100px;
         /* Adjust as needed */
         max-height: 200px; /* Adjust as needed */
         max-width: 200px;
        display: flex;
        align-items: center; /* Center content vertically */
        justify-content: center; /* Center content horizontally */
        flex-direction: column; /* Stack image and text vertically */
        font-size: 0.1rem;
        position: relative; /* Relative position for image */
    }
    .material h3{

        font-size: 1.3rem;
      
    }
    .material img {
        width: 100%; /* Adjust the size of the image */
        height: auto; /* Maintain aspect ratio */
        border-radius: 50%; /* Optional: rounded image edges */
        margin-bottom: 0.5rem; /* Space between image and text */
        filter: drop-shadow(0 2px 10px rgb(0, 0, 0)); /* Drop shadow effect */
    }
    .nav-menu {
        padding-top: 15px;
        gap: 1rem; /* Reduce gap between elements */
    }

    .hero {
        height: auto; /* Allow the hero section to resize */
        padding: 2rem 1rem;
    }

    .product, .card {
        width: 100%; /* Set width relative to screen */
        margin: 1rem auto; /* Center on smaller screens */
    }
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}
.header, .hero {
    margin: 0 auto;
    max-width: 100%; /* Ensures it doesn’t overflow */
}

}
.menu-toggle {
    position: absolute; /* Positions it relative to the nearest positioned ancestor */
    top: 0; /* Aligns it to the top */
    right: 0; /* Aligns it to the right */
    font-size: 2rem;
    background-color: #ffffff;
    border: none;
    cursor: pointer;
    color: rgb(0, 0, 0);
    z-index: 1000; /* Ensures it appears above other elements */
    padding: 10px; /* Adds some padding for better spacing */
    display: none;
}


body, html {
    overflow-x: hidden;
}
/* Mobile styles */
@media (max-width: 768px) {
    /* Display the menu toggle button */
    .menu-toggle {
        display: block;
       
    }

    /* Initially hide the nav menu */
    .nav-menu {
        display: none;
        flex-direction: column; /* Stack items vertically */
        background-color: #333; /* Optional: background color for mobile menu */
        position: absolute;
        top: 0%; /* Adjust based on header height */
        width: 100%;
        height: 40%;
    }

    /* Show the menu when open */
    .nav-menu.show {
        display: flex;
    }

    /* Optional: Style the nav items in the dropdown */
    .nav-item a {
        color: #fff; /* White text color */
        padding: 10px;
        text-align: center;
        display: block;
        text-decoration: none;
    }
    .nav-menu {
        background-image: none;
    }
    .ad-block {
        width: 500px;
        height: 150px;
       
        display: flex; /* Enable flexbox */
        justify-content: center; /* Center horizontally */
        align-items: center; /* Center vertically */
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        overflow: hidden;
        margin-left: 430px;
      
    }
}
.ad-block {
    width: 80%; /* Set a relative width, this will scale with the screen */
    max-width: 1000px; /* Limit the width to 1000px on larger screens */
    height: 300px;
    display: flex; /* Enable flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto; /* Center the block horizontally */
    padding-top: 15px;
}


.ad-block img {
    max-width: 100%; /* Restrict the width to fit inside the div */
    max-height: 100%; /* Restrict the height to fit inside the div */
    object-fit: contain; /* Ensure the image scales without distortion */
}
.ad-block + .link-container {
    text-align: center;
    margin-top: 20px;
    padding-bottom: 20px;
}
.reklama {
    position: absolute;
     left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.5); /* Dark background for readability */
    
    border-radius: 5px;

  
}

.link-container a {
    text-decoration: none;
    color: #007bff;
    font-size: 16px;
}

.link-container a:hover {
    text-decoration: underline;
}