:root {
  --primary-color: #2e2e2e;
  --primary-dark:  #1a1a1a;
  --accent-color:  #ff5733;
  --bg-light:      #f9f9f9;
  --text-color:    #333;
  --nav-height:    80px;
  --transition-speed: 0.4s;
  --border-radius: 12px;
  --shadow-light:  0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
  /* Footer and first colored band share this lighter beige */
  --footer-bg:     #e6d8b0;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Centered Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}
.slide-up {
  transform: translateY(50px);
  opacity: 0;
  animation: slideUp 0.8s forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes slideUp {
  to { transform: translateY(0); opacity: 1; }
}
@keyframes blinkCursor {
  0% { border-color: var(--accent-color); }
  50% { border-color: transparent; }
  100% { border-color: var(--accent-color); }
}

/* NAVBAR */
.navbar {
  background: transparent;
  box-shadow: none;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: background var(--transition-speed), box-shadow var(--transition-speed);
}
.navbar.solid {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-light);
}
.nav-container {
  display: flex;
  align-items: center; /* vertical centering */
  justify-content: space-between;
  padding: 1rem 0;
}
.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  transition: transform var(--transition-speed);
}
.logo.dark {
  color: var(--text-color);
}
.logo img {
  height: 45px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-weight: 500;
  padding: 0.5rem;
  color: white;
  text-decoration: none; /* no underline */
  transition: color var(--transition-speed), transform var(--transition-speed);
}
.nav-links a.dark {
  color: var(--text-color);
}

/* HERO SECTION */
.hero {
  position: relative;
  height: 100vh;
  background: url('hero-bg.png') no-repeat center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  text-align: center;
  z-index: 1;
  overflow: hidden;
}
.hero-content {
  position: relative;
  color: #fff;
  max-width: 800px;
  z-index: 2;
  text-shadow: 0 4px 15px rgba(0,0,0,0.7);
  padding: 0 1rem;
  text-align: center; /* Center align the content */
}
.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 300;
  line-height: 1.7;
}
/* HERO MOTTO: Label and motto on one line */
.hero-motto-container {
  display: flex; /* Changed to flex to control alignment */
  flex-direction: column; /* Stack motto and button vertically */
  align-items: center; /* Center items horizontally */
  white-space: nowrap;
  margin-bottom: 2.5rem;
  justify-content: center; /* Center content horizontally */
}
.hero-motto-container h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white !important;
  margin: 0 0 1rem 0; /* Added margin-bottom to separate from button */
  text-align: center; /* Ensure motto text itself is centered */
}
.hero-motto-container h2 span {
  /* border-right: 4px solid var(--accent-color); removed border right */
  white-space: nowrap;
  overflow: hidden;
  animation: blinkCursor 0.8s step-end infinite;
  margin-left: 0.5rem;
}

/* CTA BUTTON – “Get Your Free Quote” */
.cta-btn {
  display: block; /* Changed to block to be below motto and take full width */
  background-color: transparent;
  color: white;
  padding: 1rem 2.4rem;
  border-radius: 35px;
  font-weight: 700;
  /* Clean white border without extra underline */
  border: 2px solid white;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
  margin: 1rem auto 0; /* Center the button horizontally */
  text-align: center; /* Center text inside the button */
  max-width: fit-content; /* Button width fits content */
}
.cta-btn:hover {
  transform: scale(1.07);
}

/* SECTIONS */
.section {
  padding: 4rem 0;
  color: var(--text-color);
}
.section h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  position: relative;
}
/* REMOVED ORANGE LINE BELOW SECTION TITLES */
.section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0px; /* Set width to 0 to hide the line */
  height: 0px; /* Set height to 0 to hide the line */
  background: transparent; /* Make it transparent */
  border-radius: 2px;
}

/* SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width:600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.service-item {
  background: #fff;
  border: 1px solid var(--accent-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-speed);
  /* Added orange outline */
  border: 1px solid orange;
}
.service-item:hover {
  transform: translateY(-8px);
}
/* Smaller images in service items */
.service-item img {
  width: 50px;
  height: auto;
  margin-bottom: 1rem;
}
.service-item h3 {
  margin-bottom: 0.8rem;
  color: var(--primary-color);
  font-size: 1.6rem;
}
.service-item p {
  font-size: 1rem;
}

/* WHY SECTION – Credibility Boxes */
.why-website {
  padding: 4rem 0;
  background: var(--bg-light);
  color: var(--text-color);
    /* ADDED MAGIC.PNG BACKGROUND */
  background-image: url('magic.png');
  background-size: 20%; /* Reduced size of magic.png pattern */
  background-blend-mode: multiply; /* Optional: blend the pattern with the background color */
  background-color: var(--bg-light); /* Ensure a solid background if the image has transparency */
  padding: 2rem; /* Add some padding so the pattern is visible around the text */
  border-radius: var(--border-radius); /* Optional: match other box styles */
}
.why-website .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) { /* Adjust breakpoint for tablet/mobile */
  .why-website .container {
    grid-template-columns: 1fr; /* Stack to one column on smaller screens */
  }
  .why-website .data-quote {
    position: static; /* Remove sticky behavior on smaller screens */
    padding-right: 0;
    text-align: center; /* Center the quote text */
    font-size: 2rem; /* Smaller font size for mobile */
  }
  .why-content-title {
    font-size: 2.5rem; /* Smaller title font size for mobile */
  }
  .why-content p, .stat-card p, .why-item p {
    font-size: 1rem; /* Adjust paragraph font sizes for mobile */
  }
}
.data-quote {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  padding-right: 2rem;
  position: sticky;
  top: 100px;
  z-index: 500;
}
.why-content-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color) !important;
}
.why-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--accent-color);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-color);
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease;
  /* Added orange outline */
  border: 1px solid orange;
}
.stat-card:hover {
  transform: scale(1.05);
}
.stat-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.8rem;
  color: var(--primary-color);
}
.stat-card p {
  font-size: 1.1rem;
}

/* WHY LIST – Credibility Boxes with Thin Orange Outline */
.why-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width:600px) {
  .why-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.why-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-speed);
  overflow: hidden;
  z-index: 1;
  /* ADDED ORANGE OUTLINE */
  border: 1px solid orange;
}
.why-item:hover {
  transform: translateY(-4px);
}
.why-item img {
  height: 50px;
  width: 50px;
}
.why-item p {
  font-size: 1rem;
  z-index: 2;
}
/* Simple thin orange outline instead of rotating gradient */
.why-item::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 0px solid orange; /* Removed orange outline from inside box */
  border-radius: inherit;
  z-index: -1;
}

/* PORTFOLIO SECTION */
.portfolio-section {
  background: #fff;
  position: relative;
  overflow: hidden;
  padding-bottom: 2rem;
}
.portfolio-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 29px, var(--accent-color) 30px),
    repeating-linear-gradient(90deg, transparent, transparent 29px, var(--accent-color) 30px);
  pointer-events: none;
  opacity: 0.5;
  z-index: 1;
}
.portfolio-section .container {
  position: relative;
  z-index: 2;
}
/* Portfolio grid: items wrap image and caption */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 768px) { /* Adjust breakpoint for tablet/mobile */
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
  }
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: transform var(--transition-speed);
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  /* Added orange outline */
  border: 1px solid orange;
}
.portfolio-item:hover {
  transform: scale(1.03);
}
.portfolio-item a {
  display: block;
}
.portfolio-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-speed);
}
.portfolio-item:hover img {
  transform: scale(1.1);
}
.portfolio-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.portfolio-item:hover .overlay {
  opacity: 1;
}
.portfolio-item .overlay span {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
}
.portfolio-caption {
  text-align: center;
  font-size: 1rem;
  padding: 0.8rem;
  background: #f7f7f7;
  color: var(--text-color);
  border-top: 1px solid #ddd;
}

/* REVIEWS SECTION */
.reviews {
  background: url('customer.png');
  background-repeat: repeat;
  background-position: center;
  padding: 4rem 0;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  position: relative;
  /* Added orange outline */
  border: 1px solid orange;
}
.reviews .container {
  width: 100%;
  max-width: none;
  padding: 0 1rem;
}
.reviews h2 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  color: #000;
  font-size: 2.5rem; /* Smaller title for mobile */
}
.reviews-container {
  overflow-x: hidden;
  position: relative;
  width: 100%;
}
.reviews-track {
  display: flex;
  width: 200%;
  animation: scrollReviews 20s linear infinite;
}
.review-item {
  flex: 0 0 20%;
  padding: 0.8rem;
  border-radius: 8px;
  margin: 0.4rem;
  background: transparent;
  border: 1px solid var(--accent-color);
  text-align: center;
  width: 200px;
  margin-right: 10px;
  transition: transform var(--transition-speed);
  /* Added orange outline */
  border: 1px solid orange;
}
.review-item:hover {
  transform: scale(1.02);
}
.review-item p {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  font-style: italic;
  color: #000;
}
.review-item span {
  font-weight: 600;
  color: #000;
  display: block;
  font-size: 0.9rem;
}
@keyframes scrollReviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(-75%); }
}

/* CONTACT SECTION */
.contact-section {
  text-align: center;
  padding: 4rem 0 0;
  background: #fff;
  color: var(--primary-color);
  position: relative;
}
.contact-section p {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem; /* Smaller paragraph for mobile */
}
.contact-parallax {
  position: absolute;
  right: -50px;
  top: 200px;
  width: 500px;
  z-index: 0;
  opacity: 0.7;
  transition: transform var(--transition-speed);
  /* Parallax effect - initial settings, will be adjusted by JS if needed */
  transform: translateY(0); /* Initial vertical position */
  max-width: 100%; /* Added to ensure it doesn't overflow horizontally */
  height: auto;     /* Ensure aspect ratio is maintained */
}
/* Move 2.png further to the left */
.img-2 {
  margin-left: 0px; /* Adjusted to -250px for more leftward movement */
  max-width: 100%;     /* Added to ensure it doesn't overflow horizontally */
  height: auto;         /* Ensure aspect ratio is maintained */
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-light);
  /* Added orange outline */
  border: 2px solid orange;
}
.contact-form input,
.contact-form textarea {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #333;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(0, 31, 63, 0.3);
}
.contact-form button {
  background: #fff;
  color: var(--text-color);
  border: 2px solid white;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-speed), transform var(--transition-speed);
  box-shadow: var(--shadow-light);
  font-size: 1.2rem;
  /* Added orange outline */
  border: 1px solid orange;
}
.cta-btn:hover,
.contact-form button:hover {
  background: var(--primary-dark);
  transform: scale(1.03);
  box-shadow: var(--shadow-medium);
}

/* Remove "Message Sent Successfully!" if it exists */
.message-sent {
  display: none;
}

/* FOOTER */
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  background-color: var(--footer-bg);
  padding: 2rem 0;
  color: var(--text-color);
  width: 100%;
  /* REMOVE ORANGE OUTLINE FROM FOOTER */
  border: none; /* Removed outline */
}
.footer-logo img {
  height: 45px;
}
.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-direction: column; /* Stack nav links on mobile */
  align-items: center; /* Center align nav links on mobile */
}
@media (min-width: 768px) { /* Revert to horizontal nav on larger screens */
  .footer-nav ul {
    flex-direction: row;
    align-items: flex-start;
  }
}
.footer-nav a {
  color: var(--text-color);
  transition: color var(--transition-speed);
}
.footer-nav a:hover {
  color: var(--accent-color);
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a img {
  height: 24px;
  transition: transform var(--transition-speed);
}
.footer-social a:hover img {
  transform: scale(1.1);
}
.footer-copy {
  font-size: 0.9rem;
}
.footer-wrapper {
  width: 100%;
  background-color: var(--footer-bg);
}

/* COLOR BANDS */
.color-bands {
  display: block;
  width: 100%;
}
.color-band {
  display: block;
  width: 100%;
  height: 50px;
}
/* First band: same as footer background */
.color-band:nth-child(1) {
  background-color: var(--footer-bg);
  position: relative;
}
/* Make sprite.gif much bigger, flipped horizontally, and nudged upward by 5px */
.color-band:nth-child(1)::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  background: url('sprite.gif') no-repeat center center;
  background-size: contain;
  top: 35%; /* moved up by about 5 pixels compared to before */
  left: 50%;
  transform: translate(-50%, -50%) scaleX(-1);
}
.color-band:nth-child(2) { background-color: #FFD700; }
.color-band:nth-child(3) { background-color: #FFA500; }
.color-band:nth-child(4) { background-color: #FF4500; }
.color-band:nth-child(5) { background-color: #FF0000; }
.color-band:nth-child(6) { background-color: #8B0000; }

/* Additional adjustments */

/* Move 2.png further to the left.
   Apply the class "img-2" to the relevant element. */
.img-2 {
  margin-left: -250px; /* Adjusted to -250px for more leftward movement */
}

/* Section using magic.png as background for the left side.
   Apply the class "magic-section" to that section.
   The background covers only the left side. */
.magic-section {
  background: url('magic.png') no-repeat left center;
  background-size: cover;
  padding-left: 2rem; /* adjust as needed */
}

/* Extra Box Below AI Integration & Support/Hosting
   Place this box in the same grid as the two boxes.
   It will span both columns and contain "lorem impusn". */
.extra-box {
  grid-column: span 2;
  text-align: center;
  padding: 1rem;
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  background: #fff;
  margin-top: 1rem;
  /* Added orange outline */
  border: 1px solid orange;
}
@media (max-width: 600px) {
  .services-grid .extra-box {
    grid-column: 1 / -1; /* Span full width on mobile */
  }
}

.popup {
  display: none; /* Hidden by default */
  position: fixed;
  top: 20px; /* Adjust as needed */
  left: 50%;
  transform: translateX(-50%);
  background-color: #4CAF50; /* Success green */
  color: white;
  padding: 15px 25px;
  border-radius: 5px;
  z-index: 1001; /* Above navbar */
  opacity: 0;
  transition: opacity 0.5s;
}

.popup.show {
  opacity: 1;
}