/* Extra Small Devices (phones) */
@media (max-width: 480px) {
    .intro h1 {
        font-size: 40px;
        color: white;
        margin-left: 50px;
        margin-top: 125px;
    }
    
    .intro h2 {
        font-size: 40px;
        color: white;
        margin-left: 50px;
        margin-top: -50px;
    }
    
    nav {
        display: none;
    }
}

/* Small Devices (tablets in portrait) */
@media (min-width: 481px) and (max-width: 768px) {
    .intro h1 {
        font-size: 80px;
        color: white;
        margin-left: 125px;
        margin-top: 125px;
    }
    
    .intro h2 {
        font-size: 80px;
        color: white;
        margin-left: 125px;
        margin-top: -120px;
    }    
}

/* Medium Devices (tablets in landscape, small laptops) */
@media (min-width: 769px) and (max-width: 1024px) {
    .intro h1 {
        font-size: 80px;
        color: white;
        margin-left: 125px;
        margin-top: 125px;
    }
    
    .intro h2 {
        font-size: 80px;
        color: white;
        margin-left: 125px;
        margin-top: -120px;
    }    
}

/* Large Devices (desktops, large laptops) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .intro h1 {
        font-size: 80px;
        color: white;
        margin-left: 125px;
        margin-top: 125px;
    }
    
    .intro h2 {
        font-size: 80px;
        color: white;
        margin-left: 125px;
        margin-top: -120px;
    }    
}

/* Extra Large Devices (large desktops, TVs) */
@media (min-width: 1441px) {
    .intro h1 {
        font-size: 80px;
        color: white;
        margin-left: 125px;
        margin-top: 125px;
    }
    
    .intro h2 {
        font-size: 80px;
        color: white;
        margin-left: 125px;
        margin-top: -120px;
    }    
}

/* General styles */
body {
    background-color: black;
    color: grey;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    padding-top: 125px;
}

a {
    text-decoration: none;
    color: grey;
}

.header, .thin-green-line {
    background-color: #6aab47; 
}

.thin-green-line {
    border: 1px solid #6aab47;
    margin: 50px 0;
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 40px;
    background-color: black;
    border-bottom: 5px solid #6aab47;
    z-index: 1000;
    font-size: 20px;
}

.logo {
    color: grey;
    font-size: 24px;
    margin-left: -80px;
}

.linkedin-img {
    display: block;
    float: right;
    margin: 10px 20px 0 0;
    width: 50px;
    height: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 50px;
    margin-left: -75px;
}

nav ul li {
    display: inline;
}

.button {
    background-color: darkgrey; 
    color: black;
    padding: 15px 30px;
    border-radius: 35px;
    font-weight: bold;
    cursor: pointer;
    font-size: 20px;
    margin-right: 15px;
}

.button2 {
    background-color: darkgrey; 
    color: black;
    padding: 15px 30px;
    border-radius: 35px;
    font-weight: bold;
    cursor: pointer;
    font-size: 20px;
}

.logo-img {
    height: 80px; 
    width: auto; 
    margin: 0 0 0 70px;
}

/* Main section styles */
.intro {
    padding: 100px 40px 40px;
    text-align: left;
    margin: 50px;
    padding-top: 180px;
}

.intro h1, .intro h2 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 300;
}

.intro em {
    font-style: italic;
    font-family: 'Dancing Script', cursive; 
}

/* Intro Video */
.automation-video {
    position: absolute;
    top: 190px; 
    left: 1010px;
    width: 750px; 
    height: auto;
    overflow: hidden;
    border-radius: 10px;
    border: 2.5px solid #6aab47;
}

video {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.video-container {
    position: relative;
    display: inline-block;
}

.restart-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #6aab47;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: white;
    text-shadow: 1px 1px 4px black;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease-in-out;
}

.restart-btn:hover {
    transform: scale(1.1);
}

/*Testimonials*/
.test-works {
    margin: 60px 40px;
}

.customer-title {
    font-size: 40px;
    margin-left: 20px;
    margin-bottom: 10px;
    margin-top: -80px;
    color: white;
    font-family: 'Roboto Condensed', sans-serif;
}

.test-title {
    font-size: 40px;
    font-family: "Courier New", Courier, monospace;
    margin-left: 20px;
    margin-top: -35px;
    color: white;
}

/* Selected Works section */
.selected-works {
    margin: 60px 40px;
}

.selected-title {
    font-size: 40px;
    margin-left: 20px;
    margin-bottom: 10px;
    color: white;
    font-family: 'Roboto Condensed', sans-serif;
}

.works-title {
    font-size: 40px;
    font-family: "Courier New", Courier, monospace;
    margin-left: 20px;
    margin-top: -35px;
    color: white;
}

.work-gallery {
    display: flex;
    overflow: hidden;
    margin: 20px 0;
}

.work-item {
    width: 50%;
    text-align: center;
    margin-right: 20px;
}

.arrows {
    display: flex;
    justify-content: flex-start;
    margin-left: 20px;
}

.arrow {
    background-color: darkgrey;
    border: none;
    color: black;
    padding: 15px;
    margin: 15px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 25px;
}

/* Social links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 10px; 
}

.social-links a {
    color: white; 
    font-size: 15px;
    padding: 5px;
}

.social-links .separator {
    color: white; 
    font-size: 15px;
    margin: 0 10px;
}

/*Let's Talk Form*/
.contact-form-section {
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

.contact-header {
    margin-bottom: 60px;
}

.contact-title {
    font-size: 80px;
    color: white;
    font-family: 'Roboto Condensed', sans-serif;
    margin-bottom: -50px;
}

.contact-title .highlight {
    font-family: 'Dancing Script', cursive;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    position: relative; 
    padding-bottom: 100px; 
}

.form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.form-group {
    flex: 1;
    margin: 0 10px;
    position: relative;
    padding: 0 10px;
}

.form-group label {
    display: block;
    font-size: 18px;
    margin-top: 25px;
    color: grey;
}

.form-group input,
textarea {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-bottom: 1px solid grey;
    background: transparent;
    box-sizing: border-box;
    font-size: 16px;
    color: grey;
    margin-bottom: 15px;
}

textarea {
    margin-bottom: 40px;
    resize: vertical;
}

.submit {
    background-color: darkgrey;
    color: black;
    padding: 15px 30px;
    border-radius: 35px;
    font-weight: bold;
    cursor: pointer;
    font-size: 18px;
    margin-top: 40px;
}

.contact-footer {
    width: 100%;
    margin-top: -30px;
}

.contact-footer p {
    font-size: 16px;
    color: grey;
    margin: 0;
}

.contact-footer .email {
    color: white;
    font-size: 16px;
    font-weight: bold;
}

/* About */
.about h1, .about h2, .about h3 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 300;
}

.about h1 {
    font-size: 80px;
    color: #6aab47;
    margin-left: 125px;
    margin-right: 125px;
    margin-top: 175px;
}

.about h2 {
    font-size: 30px;
    color: grey;
    margin-top: 125px;
    margin-left: 125px;
    margin-right: 125px;
    margin-top: -50px;
    margin-bottom: 35px;
}

.about em {
    font-style: italic;
    font-family: 'Dancing Script', cursive;
    font-size: 40px;
}

/* Contact */
.contact-page {
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.team-member {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 30px;
    gap: 40px;
}

.team-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #6aab47;
}

.team-info {
    flex: 1;
    min-width: 250px;
}

.team-info h2 {
    font-size: 36px;
    color: #6aab47;
    margin-bottom: 15px;
    font-family: 'Roboto Condensed', sans-serif;
}

.team-info .bio {
    font-size: 18px;
    margin-bottom: 10px;
    color: grey;
}

.team-info .role {
    font-size: 16px;
    font-style: italic;
    color: lightgrey;
}

.team-info .con-info {
    font-size: 14px;
    font-style: italic;
    color: lightgrey;
}

.copy-email {
    color: #6aab47;
    cursor: pointer;
    text-decoration: underline;
}
.copy-email:hover {
    color: white;
}

/* Footer */
.footer {
    background-color: black;
    border-top: 2.5px solid #6aab47;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 25px;
}


.footer div {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: grey;
    padding: 5px 0;
}

.footer-logo {
    width: 30px;
    height: 30px;
    padding: 5px;
    padding-top: 10px;
}

#main-services-msg h6 {
    color: white;
    margin: 170px auto auto 35px;
    font-size: 14px;
}

#main-services-msg h3 {
    color: white;
    margin: 10px auto auto 35px;
    font-size: 18px;
}

/* STORE */
.categories {
    text-align: center;
    border-radius: 25px;
}

.categories h2 {
    font-size: 36px;
    color: #6aab47;
    font-family: 'Montserrat', sans-serif;
    padding-bottom: 25px;
    text-align: center;
    margin-bottom: 10px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px; 
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 16px; 
    margin-bottom: 40px;
}

.category-card {
    background: #C0C0C0;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: black;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #ddd;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.category-card img {
  display: block;
  width: 50%;
  height: 50px;
}

.category-card h3 {
    font-size: 24px;
    font-family: 'Montserrat', sans-serif;
}

.search-section {
  padding: 16px; 
  background: white;
  text-align: center;
}

.search-form input {
  padding: 8px; 
  width: 250px;
}

.search-form button {
  padding: 8px 16px; 
}


.category-card:hover {
  transform: scale(1.03);
}

.category-card img {
  width: 100%;
  height: auto;
}

.product-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px; 
}

.product-image {
  width: 300px;
  height: auto;
}

.product-details {
  text-align: center;
  margin-top: 16px; 
}

/* Check Out */
.cart-page {
  padding: 32px; 
}

.cart-items div {
  margin: 8px 0; 
}

.cart-button {
  color: #6aab47;
  border: 2px solid #6aab47;
  padding: 6px 10px;
  text-decoration: none;
  background: black;
  border-radius: 4px;
}

.cart-total {
  background-color: #6aab47;
  color: black;
  padding: 5px;
  border-radius: 4px; 
  font-weight: bold; 
  display: inline-block; 
}

.checkout-button {
  padding: 8px 16px;
  background: black;
  color: #6aab47;
  font-size: 16px; 
  border: 2px solid #6aab47;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  display: inline-block;
}

.checkout-button:hover {
  background: #6aab47; 
  color: black;
  border-color: #6aab47;
}

.checkout{
    margin-top: 30px;
}

.remove-button {
  margin-left: 10px;
  color: white;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
}

.remove-button:hover {
  background-color: #c9302c;
}

#remove{
    margin-left: 40px;
}

.small-button {
  padding: 4px 10px;
  background: black;
  color: #6aab47;
  font-size: 11px;
  border: 2px solid #6aab47;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  display: inline-block;
}

.small-button:hover {
  background: #6aab47;
  color: black;
  border-color: #6aab47;
}

.payment-options {
  font-size: 14.4px;
  color: #666;
}

#cart-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 40px;
}

#clear-cart {
  margin-bottom: 12px;
}

#back-to-store {
  text-decoration: none;
  color: #6aab47;
  font-weight: bold;
}

.view {
  display: none;
}

.view:not(.hidden) {
  display: block;
}

/*Search Bar*/
.search-bar {
  padding: 8px 16px; 
  background: black;
  color: #6aab47;
  border: 2px solid black; 
  border-radius: 25px;
  font-size: 16px;
  width: auto;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.search-bar:focus {
  background-color: #6aab47 !important;
  color: black !important;
  border: 1px solid #6aab47 !important;
  outline: none !important;
  box-shadow: none !important;
  caret-color: black;
}

.search-bar:hover {
  background: #6aab47; 
  color: black; 
  border-color: #6aab47;
}

.search-section {
  padding-top: 50px;
  background: none;
}

.search-form {
  display: flex;
  align-items: center;
  padding: 8px;
  width: 250px;
  border-radius: 5px;
}

.search-form button {
  padding: 8px 16px; 
  margin-left: 5px;
}

.search-form input[type="text"],
.search-form button {
  background-color: black;
  color: #6aab47; 
  border: 2px solid #6aab47;
  padding: 8px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  border-radius: 4px;
}

.search-form button:hover {
  background-color: #6aab47;
  color: black;
  cursor: pointer;
}

#category-results .category-card {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}

/* Search Tools */
.search-tools {
  margin: 15px 0;
  font-size: 14px;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #6aab47;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
  margin: 10px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.search-result-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
