@import url('https://fonts.googleapis.com/css2?family=Saira+Stencil+One&display=swap');

/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f7eab9;
    cursor: none;
    font-family: 'Saira Stencil One', system-ui;
}

/* Navbar & Hamburger Menu */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(250, 223, 159);
    padding: 20px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #eaeaea00;
}

.logo {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: #1f1e1e;
    font-family: 'Saira Stencil One', system-ui;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 5px;
    transition: 0.3s; /* This makes the "X" animation smooth */
}

.menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


.nav-menu {
    /* 1. POSITIONING: Floating "Box" style */
    position: absolute;
    top: 80px;         /* Distance from the top navbar */
    right: 5%;         /* Aligned with the right padding of the site */
    display: flex; 
    flex-direction: column;
    
    /* 2. THE LOOK: Modern & Clean */
    background-color: #4a2d03;
    width: 220px;
    padding: 10px 0;
    border-radius: 12px; /* Smooth rounded corners */
    box-shadow: 0 10px 30px rgba(129, 92, 6, 0.663); /* Soft shadow for depth */
    border: 1px solid rgba(0, 0, 0, 0); /* Very thin border for definition */
    
    /* 3. ANIMATION START: The "Hidden" state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95); /* Starts slightly smaller and higher */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Professional "pop" curve */
    z-index: 1000;

    list-style: none;
}

.nav-menu.active {
    opacity: 1;            /* Fully visible */
    visibility: visible;   /* Makes it clickable */
    transform: translateY(0); /* Slides down to original position */
   display: flex;
}

.nav-menu li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 100;
    transition: 0.2s;
    font-family: 'Saira Stencil One', system-ui;
}

.nav-menu li a:hover {
    background-color: #d6a24f;
    color: #000000;
}
/* Sections */
section {
    padding: 80px 5%;
}

.hero-section {
    height: 90vh;
    background-color: #000000; /* Dark sleek background */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgb(159, 128, 49);
    
}

.hero-logo {
    width: 350px; /* Adjust size as needed */
    height: auto;
    border-radius: 70%; /* Keeps it circular */
    border: 3px solid #cbb17d; /* Optional: adds a green ring to match the button */
    margin-bottom: 0px;
    box-shadow: 0 20px 700px rgba(244, 128, 3, 0.5);
}

.hero-content h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;;
     font-family: 'Saira Stencil One', system-ui; 
     font-weight: 500;   
}

.hero-section h2 {
    font-size: 1.5rem;
    margin-top: 15px;
    color: rgb(159, 128, 49);
     font-family: 'Saira Stencil One', system-ui;
     font-style: normal;
     font-weight: 500;
}

.cta-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 15px 40px;
    background: #ffffff00;
    color: rgba(229, 203, 147, 0);
    text-decoration: none;
    border-radius: 5px; /* Boxier look to match the "Esco Plug" banner */
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.3s;
}

.cta-btn:hover {
    background: #ff9721;
    transform: scale(1.30);
}


.cta-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #ffd175;
    color: rgb(122, 71, 0);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
}

/* Catalog Grid */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Saira Stencil One', system-ui;
    font-weight: 500;
}

.catalog-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
}

.product-card {
    background: rgb(222, 195, 127);
    width: 280px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
   opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.product-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover { transform: scale(1.05); /* Subtle zoom */
  opacity: 1; }

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info { padding: 20px; text-align: center;  font-family: 'Saira Stencil One', system-ui;}  

.product-name {font-family:  'Saira Stencil One', system-ui; 
    font-weight: 500;
}

.product-price { color: #975f00; margin-top: 10px; font-size: 1.2em; font-family: 'Saira Stencil One', system-ui; }

.product-description { color: #975f00; font-size: 1.2rem; margin-top: 10px; font-family: 'Saira Stencil One', system-ui; }

.product-description2 { color: #4e473b; font-size: 1.2rem; margin-top: 10px; font-family: 'Saira Stencil One', system-ui; }

/* Contact */
.contact-section { background: #c7a965; text-align: center; }
.contact-card { background: rgb(208, 145, 56); display: inline-block; padding: 30px; border-radius: 10px; margin-top: 20px; }

.cursor-dot {
  width: 12px;
  height: 12px;
  background-color: rgb(102, 69, 25);
  z-index: 9999;
}

.cursor-outline {
  width: 60px;
  height: 60px;
  border: 2px solid rgb(204, 159, 76);
  z-index: 9999;
}

.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none; /* Crucial: lets you click "through" the cursor */
  will-change: transform;
}

/* Hide custom cursor elements on mobile/tablets */
@media (pointer: coarse) {
  .cursor-dot, 
  .cursor-outline {
    display: none !important;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px); /* Starts 30px lower */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* Ends at its natural position */
  }
}

.product-card:nth-child(1) { animation-delay: 0.2s; }
.product-card:nth-child(2) { animation-delay: 0.3s; }
.product-card:nth-child(3) { animation-delay: 0.4s; }
.product-card:nth-child(4) { animation-delay: 0.5s; }

.contact-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #cbb17d;
    box-shadow: 0 5px 15px rgba(244, 128, 3, 0.5);
}
