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

@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');

:root {
  --accent: #6c2c76; /* change this to brand color */
}

body {
  font-family: 'Questrial', 'Segoe UI', Roboto, sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
  margin: 0 auto;
}

h1 {
  color: var(--accent);
  text-align: center;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
  z-index: 1000;
}

.logo img {
  height: 50px;
}

/* Desktop Menu */
.menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s;
}

.menu li a:hover {
  color: #7e57c2; /* your theme color */
}

/* Hamburger Icon (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
}

/* Banner */
.banner {
  background: url("images/banner1.jpg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 75px; /* offset for fixed navbar */
  color: white;
  position: relative;
}

.banner img {
  height: auto;
  width: auto;
  max-height: 100%;
  object-fit: contain; /* ensures image is not cropped */
}

.banner::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.banner-text {
  position: relative;
  z-index: 1;
}
.banner-text h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}
.banner-text p {
  font-size: 1.2rem;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 5%;
  }

  /* Hide desktop menu */
  .menu {
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    display: none; /* hidden by default */
  }

  .menu.active {
    display: flex; /* shown when hamburger clicked */
  }

  /* Show hamburger icon */
  .hamburger {
    display: flex;
  }

  .banner {
    margin-top: 0px; /* remove offset for fixed navbar */
  }
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}




/* Section */

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
}

/* Project rows */
.projects-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 30px;
  width: auto;
  justify-content: center;
  padding: 20px;

}

.project-row a.project-link {
  display: flex;
  align-items: center;
  gap: 30px;
  text-decoration: none;
  color: inherit;
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.2s;
}

.project-row.reverse a.project-link {
  flex-direction: row-reverse;
  background-color: var(--accent);
  color: #fff;
}

.project-row a.project-link:hover {
  transform: scale(1.02);
}

.project-image {
  width: 50%;
}

.project-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  text-decoration: none;
  color: inherit;
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.2s;
}

.product-row.reverse {
  flex-direction: row-reverse;
  background-color: var(--accent);
  color: #fff;
}

.product-image {
  width: auto;
}

.product-image img {
  height: 240px;
  border-radius: 12px;
  width: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.project-text {
  flex: 1;
}

.project-text h2 {
  margin: 0 0 10px;
}

.project-text p {
  margin: 0 0 15px;
}

.about-section {
  margin: 30px;
  padding: 20px;
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  width: 100%;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover {
  background: #357ab8;
}

/* About Section */
.about-section {
  --gap: 36px;
  display: grid;
  grid-template-columns: 1fr 420px; /* content / image */
  gap: var(--gap);
  align-items: center;
  padding: 60px 10%;
  background: #ffffff;
  color: #222;
  margin: 0 auto;
}

/* Heading */
.about-section > h1 {
  grid-column: 1 / -1;
  font-size: 2.25rem;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2px;
}

/* Content area */
.about-content {
  max-width: 760px;
  line-height: 1.7;
  font-size: 1rem;
  color: #333;
  padding-right: 8px;
}

/* Section sub-headings inside content */
.about-content h2 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 700;
}

/* Paragraphs */
.about-content p {
  margin-bottom: 12px;
  color: #4a4a4a;
  font-size: 1rem;
}

/* Image column */
.about-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.about-image img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(20,20,30,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  display: block;
}

/* Make the layout tighter on medium screens */
@media (max-width: 1100px) {
  .about-section {
    grid-template-columns: 1fr 360px;
    padding: 48px 6%;
    gap: 28px;
  }
  .about-image img { max-height: 360px; }
}

/* Mobile: stack content then image */
@media (max-width: 768px) {
  .about-section {
    grid-template-columns: 1fr;
    padding: 36px 6%;
    gap: 18px;
  }
  .about-section > h1 { text-align: left; }
  .about-image { order: 2; }
  .about-content { order: 1; }
  .about-content h2 { font-size: 1rem; }
}

/* Reduced motion preference (accessibility) */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Contact Section */
.contact-section {
  padding: 60px 10%;
  background: #fff;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-section h1 {
  font-size: 2.25rem;
  color: var(--accent);
  margin-bottom: 30px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.3px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  align-items: stretch;
}

/* Map styling */
.contact-map iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Form styling */
.contact-form {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.contact-form h2 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.contact-form p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 18px;
  line-height: 1.6;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: 0.2s border-color;
}

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

.contact-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #5a3df0;
}

/* Responsive Layout */
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-map iframe {
    height: 300px;
  }
}

/* CAPTCHA Styles */
.captcha-container {
  margin-bottom: 18px;
}

.captcha-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eaeaea;
  border-radius: 6px;
  padding: 8px 12px;
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 3px;
  color: var(--accent);
  user-select: none;
  margin-bottom: 8px;
}

.refresh-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #777;
  transition: color 0.3s;
}

.refresh-btn:hover {
  color: var(--accent);
}

.amazon-buy-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #ff9900;
  color: #fff;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}


/* Make it responsive */
@media (max-width: 768px) {
    .project-row {
        flex-direction: column;
        text-align: center;
    }
    .project-row.reverse {
        flex-direction: column;
    }
    .project-image img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}
  
/* Footer */
footer {
  background: #fafafa;
  color: #777;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
}
footer a {
  color: var(--accent);
  text-decoration: none;
}