/* Reset and General Styles */
:root {
  --white: #ffffff;
  --dark: #272727;
  --accent: #fbc646;
  --dark-accent: #e0b03f;
  --gray: #3a3a3a;
  --light-gray: #525252;
  --mobile-padding: 20px;
  /* Padding for mobile sections */
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  /* Prevents horizontal scrolling */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 15px;
  /* Default padding */
  padding-right: 15px;
  /* Default padding */
}

/* Mobile-specific padding for the container */
@media (max-width: 767px) {
  .container {
    padding-left: 10px;
    /* Less padding on small screens */
    padding-right: 10px;
    /* Less padding on small screens */
  }
}


/* --- Header --- */
header {
  position: sticky;
  top: 0;
  background-color: rgba(39, 39, 39, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(251, 198, 70, 0.2);
  transition: background-color 0.3s ease;
}

.header-container {
  display: flex;
  /* Keep this flex, even on mobile */
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
  max-width: 100%;
  /* Add this for responsiveness */
}

.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(to right, var(--white), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

/* Mobile-specific styles for the logo text */
@media (max-width: 767px) {
  .logo-text {
    font-size: 1.2rem;
    /* Smaller font size on mobile */
    display: flex;
    /* Use flexbox to easily stack */
    flex-direction: column;
    /* Stack vertically */
  }
}

/* --- Navigation (Mobile First) --- */
.nav-toggle {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  display: block;
  /* Show on mobile by default */
}

nav {
  display: none;
  /* Hidden by default on mobile */
  position: absolute;
  /* Absolute positioning */
  top: 100%;
  /* Position it *below* the header */
  left: 0;
  width: 100%;
  background-color: var(--dark);
  padding: var(--mobile-padding);
  /* Use mobile padding */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 999;
  /* Ensure it's below the header */
}


nav.nav-active {
  display: block;
  /* Show when active */
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin-bottom: 10px;
  /* Spacing between links */
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  display: block;
  /* Make links block-level */
  padding: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
  background-color: var(--light-gray);
  color: var(--accent);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 80px 0;
  /* Reduced padding for mobile */
  background-color: var(--dark);
  overflow: hidden;
  text-align: center;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(251, 198, 70, 0.1), transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.2rem;
  /* Reduced font size for mobile */
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1rem;
  /* Reduced font size for mobile */
  font-weight: 300;
  margin-bottom: 1.5rem;
  /* Reduced margin */
  line-height: 1.6;
}

.cta {
  display: inline-block;
  background-color: var(--accent);
  color: var(--dark);
  padding: 10px 25px;
  /* Reduced padding */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
  margin-top: 1rem;
}

.cta:hover {
  background-color: transparent;
  color: var(--accent);
}

/* --- Sections --- */
section {
  padding: var(--mobile-padding) 0;
  /* Reduced padding for all sections */
}

.section-title {
  text-align: center;
  margin-bottom: 20px;
  /* Reduced margin */
  position: relative;
}

.section-title h2 {
  font-size: 2rem;
  /* Reduced font size */
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title h2:after {
  content: '';
  display: block;
  width: 60px;
  /* Reduced width */
  height: 3px;
  background-color: var(--accent);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}


/* --- About Section --- */
.about {
  position: relative;
  background-color: var(--gray);
  border-radius: 20px;
  padding: var(--mobile-padding);
  /* Use mobile padding */
}

.about-content {
  display: flex;
  flex-direction: column;
  /* Stack on mobile */
  align-items: center;
  gap: 20px;
}

.about-text {
  flex: 1;
}

.about-text p {
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  /* Reduced font size */
}

.about-image {
  flex: 1;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Single column on mobile */
  gap: 20px;
}

.service-card {
  background-color: var(--gray);
  border-radius: 15px;
  padding: 20px;
  /* Reduced padding */
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(251, 198, 70, 0.1);
}

.service-card:before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: rgba(251, 198, 70, 0.05);
  z-index: 0;
  transition: transform 0.5s ease;
}

.service-card:hover:before {
  transform: scale(1.2);
}


.service-icon {
  font-size: 2rem;
  /* Slightly reduced size */
  margin-bottom: 10px;
  /* Reduced margin */
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.service-title {
  font-size: 1.2rem;
  /* Reduced font size */
  font-weight: 600;
  margin-bottom: 10px;
  /* Reduced margin */
  position: relative;
  z-index: 1;
}

.service-description {
  font-size: 0.85rem;
  /* Reduced font size */
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
}


/* --- Products Section --- */
.products {
  background-color: var(--dark);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Single column on mobile */
  gap: 20px;
}

.product-card {
  background-color: var(--gray);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.product-image {
  height: 200px;
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.product-card:hover .product-image img {
  transform: translate(-50%, -50%) scale(1.1);
}


.product-content {
  padding: 20px;
}

.product-title {
  font-size: 1.1rem;
  /* Reduced font size */
  font-weight: 600;
  margin-bottom: 8px;
  /* Reduced margin */
}

.product-description {
  font-size: 0.8rem;
  /* Reduced font size */
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  /* Reduced margin */
}

.product-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.product-link:hover {
  color: var(--dark-accent);
}

.product-link span {
  margin-left: 5px;
  transition: margin-left 0.3s ease;
}

.product-link:hover span {
  margin-left: 8px;
}

/* --- Contact Section --- */
.contact {
  position: relative;
  background-color: var(--gray);
  border-radius: 20px;
  padding: var(--mobile-padding);
  /* Use mobile padding */
}

.contact-container {
  display: flex;
  flex-direction: column;
  /* Stack on mobile */
  gap: 20px;
}

.contact-info,
.contact-form {
  flex: 1;
  width: 100%;
  /* Full width on mobile */
}

.contact-info h3 {
  font-size: 1.5rem;
  /* Reduced font size */
  margin-bottom: 15px;
  /* Reduced margin */
  font-weight: 600;
}

.contact-info p {
  line-height: 1.8;
  margin-bottom: 15px;
  /* Reduced margin */
  font-size: 0.9rem;
  /* Reduced font size */
}

.contact-details {
  list-style: none;
  margin-bottom: 15px;
  /* Reduced margin */
}

.contact-details li {
  margin-bottom: 10px;
  /* Reduced margin */
  display: flex;
  align-items: flex-start;
}

.contact-details i {
  color: var(--accent);
  margin-right: 10px;
  /* Reduced margin */
  font-size: 1rem;
  /* Reduced size */
  width: 20px;
  text-align: center;
}

.contact-form {
  background-color: var(--dark);
  padding: 20px;
  /* Reduced padding */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 15px;
  /* Reduced margin */
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  /* Reduced margin */
  font-weight: 500;
  font-size: 0.8rem;
  /* Reduced font size */
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  /* Reduced padding */
  background-color: var(--light-gray);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  /* Reduced font size */
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--gray);
}

.form-group textarea {
  min-height: 100px;
  /* Reduced height */
  resize: vertical;
}

.submit-btn {
  background-color: var(--accent);
  color: var(--dark);
  border: none;
  padding: 10px 20px;
  /* Reduced padding */
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  border: 2px solid var(--accent);
  width: 100%;
  display: block;
  font-size: 0.9rem;
  /* Reduced font size */
}

.submit-btn:hover {
  background-color: transparent;
  color: var(--accent);
}

/* --- Footer --- */
footer {
  background-color: var(--dark);
  padding: 40px 0 20px;
  /* Reduced top padding */
  position: relative;
}

.footer-container {
  display: flex;
  /* Use flexbox for easier mobile layout */
  flex-direction: column;
  /* Stack on mobile */
  gap: 20px;
  /* Reduced gap */
  margin-bottom: 20px;
  /* Reduced margin */
}

.footer-section {
  /* No text align needed */
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-section h4:after {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--accent);
  margin-top: 8px;
}


.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
  /* Reduced margin */
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.8rem;
  /* Reduced font size */
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
  margin-left: 5px;
}

.footer-connect {
  grid-column: 1 / 3;
  text-align: left;
  /* Left-align the entire block */
}

.footer-connect h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-connect h4:after {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--accent);
  margin-top: 8px;
}


.footer-connect ul {
  list-style: none;
  padding: 0;
}

.footer-connect li {
  margin-bottom: .5rem;
}

.social-links {
  display: flex;
  gap: 10px;
  /* Reduced gap */
  margin-top: 15px;
  /* Reduced margin */
  justify-content: flex-start;
  flex-wrap: wrap;

}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  /* Reduced size */
  height: 35px;
  /* Reduced size */
  border-radius: 50%;
  background-color: var(--gray);
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent);
  color: var(--dark);
  transform: translateY(-3px);
}

/* Footer Logo and Text */
.footer-logo {
  text-align: center;
  /* Center on mobile */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo img {
  width: 120px;
  /* Reduced size */
  margin-bottom: 1rem;
  max-width: 100%;
  /* Add this for responsiveness */
}

.footer-logo p {
  font-size: 0.8rem;
  /* Reduced font size */
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 100%;
  /* Ensure it fits within container */
  margin: 0;
  /* Remove default margins */
  text-align: center;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  /* Reduced padding */
  font-size: 0.75rem;
  /* Reduced font size */
  color: rgba(255, 255, 255, 0.6);
  margin-top: 20px;
  /* Add some margin */
}

/* --- Media Queries (Tablet and Larger) --- */

/* Medium Devices (Tablets) */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
    /* Hide toggle on larger screens */
  }

  nav {
    display: flex;
    /* Show nav by default */
    position: static;
    /* Reset positioning */
    width: auto;
    /* Reset width */
    background-color: transparent;
    /* Reset background */
    padding: 0;
    /* Reset padding */
    box-shadow: none;
    /* Reset box-shadow */
  }

  nav ul {
    display: flex;
    gap: 2rem;
    /* Restore gap */
  }

  nav ul li {
    margin-bottom: 0;
  }

  nav ul li a {
    padding: 5px 0;
    /* Reset padding */
    font-size: 1rem;
    /* Reset font-size */
    display: inline;
  }

  nav ul li a:hover {
    background-color: transparent;
    color: var(--accent);
  }

  .hero {
    padding: 120px 0;
    /* Restore original padding */
  }

  .hero h1 {
    font-size: 3.5rem;
    /* Restore original size */
  }

  .hero p {
    font-size: 1.25rem;
    /* Restore original size */
  }

  .section-title h2 {
    font-size: 2.5rem;
  }

  .section-title h2:after {
    width: 80px;
    margin: 0.5rem auto 0;
  }

  .about {
    padding: 40px;
    /* Restore padding */
  }

  .about-content {
    flex-direction: row;
  }

  .about-text p {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Two columns on tablets */
  }

  .service-card {
    padding: 30px;
  }

  .service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .service-description {
    font-size: 0.95rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Two columns on tablets */
  }

  .product-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .product-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .contact {
    padding: 40px;
  }

  .contact-container {
    flex-direction: row;
    /* Restore row layout */
  }

  .contact-info,
  .contact-form {
    width: auto;
    /* Reset width */
  }

  .contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .contact-info p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .contact-details i {
    margin-right: 15px;
    font-size: 1.2rem;
  }

  .contact-form {
    padding: 30px;
  }

  .form-group label {
    margin-bottom: 8px;
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .form-group textarea {
    min-height: 120px;
  }

  .submit-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .footer-container {
    flex-direction: row;
    /* Restore row layout */
    align-items: flex-start;
    /* Align items to the top */
    margin-bottom: 40px;
  }

  .footer-section,
  .footer-logo {
    text-align: left;
    /* Align content to the left */

  }

  .footer-links a {
    font-size: .9rem;
  }

  .footer-logo {
    width: 25%;
    margin-right: 5%;
  }

  .footer-section {
    width: 20%;
  }

  .footer-logo img {
    width: 100%;
    /* Use 100% of the container width */
    max-width: 250px;
    /* Limit the maximum width */
    margin-bottom: 1rem;
  }

  .footer-logo p {
    text-align: left;
    font-size: 0.9rem;
  }

  .social-links {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
}

/* Large Devices (Desktops) */
@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    /* Three columns on larger screens */
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    /* Three columns on larger screens */
  }

  .footer-section {
    width: auto;
  }
}