/*
 * Global styling for Semibit one‑page website
 *
 * Colours and layout choices were selected to evoke a modern,
 * professional feel while ensuring accessibility and contrast. Each
 * section features a distinct background (either an abstract image or a
 * subtle colour) so the page feels dynamic as you scroll.
 */

:root {
  --primary-color: #6366f1;
  /* indigo 500 */
    --primary-hover: #4f46e5;
    /* indigo 600 */
    --secondary-color: #ec4899;
    /* pink 500 */
    --secondary-hover: #db2777;
    /* pink 600 */
    --text-dark: #1f2937;
    /* slate 800 */
    --light-bg: #f9fafb;
    /* very light grey */
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--light-bg);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

/* Utility wrapper to constrain content */
.wrapper {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  color: #fff;
  z-index: 1000;
  transition: background 0.3s ease;
}

/* Transparent at top, darker when scrolled */
.navbar.scrolled {
  background: rgba(10, 25, 47, 0.8);
  backdrop-filter: blur(8px);
}

.navbar .logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links li a:hover {
  color: var(--secondary-color);
}

/* Hamburger button for small screens */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
}

/* Hide close icon by default */
.menu-toggle .fa-times {
  display: none;
}

/* When menu is active, show close icon and hide hamburger */
.menu-toggle.active .fa-bars {
  display: none;
}

.menu-toggle.active .fa-times {
  display: block;
}

/* Hero section */
header {
  background-image: url('assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  color: #ffffff;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
  /* Prevent long words from overflowing */
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background: var(--primary-color);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-secondary:hover {
  background: #ffffff;
  color: var(--primary-color);
  border-color: #ffffff;
}

/* Services section */
.services-section {
  position: relative;
  background-image: url('assets/services-bg.png');
  background-size: cover;
  background-position: center;
  padding: 120px 0 80px;
  color: var(--text-dark);
}

/* Light overlay to improve contrast */
.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  z-index: 0;
}

.services-section .wrapper {
  position: relative;
  z-index: 1;
}

.services-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-card i {
  font-size: 2rem;
  color: var(--primary-color);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-top: 0.5rem;
  color: #111827;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Differences section */
.differences-section {
  background: var(--light-bg);
  padding: 100px 0;
  color: var(--text-dark);
}

.differences-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.differences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.difference-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.difference-card i {
  font-size: 2rem;
  color: var(--secondary-color);
}

.difference-card h3 {
  font-size: 1.3rem;
  color: #111827;
}

.difference-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Projects section */
.projects-section {
  position: relative;
  background-image: url('assets/contact-bg.png');
  background-size: cover;
  background-position: center;
  padding: 120px 0;
  color: var(--text-dark);
}

.projects-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  z-index: 0;
}

.projects-section .wrapper {
  position: relative;
  z-index: 1;
}

.projects-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.featured-project {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.featured-project .project-info {
  flex: 1 1 350px;
}

.featured-project .project-info h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: #111827;
}

.featured-project .project-info p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.carousel {
  flex: 1 1 350px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.carousel-item {
  display: none;
  justify-content: center;
  align-items: center;
  background: #ffffff00;
  /* background color */
  border-radius: 20px;
  /* rounded background */
  padding: 115px;
  /* spacing around image */
  margin: 10px auto;
  max-width: 500px;
  /* optional: limit width */
}

@media (max-width: 768px) {

  .carousel-item {
    padding: 0px;
  }
}

.carousel-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
    /* rounded corners on image itself */
    display: block;
}

.carousel-item.active {
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  padding: 0.4rem 0.8rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
  transition: background 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.other-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  backdrop-filter: blur(3px);
}

.project-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

.project-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  color: #111827;
}

.project-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* About section */
.about-section {
  position: relative;
  background-image: url('assets/about-bg.png');
  background-size: cover;
  background-position: center;
  padding: 120px 0;
  color: #ffffff;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.about-section .wrapper {
  position: relative;
  z-index: 1;
}

.about-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-section p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.highlight {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 15px;
  backdrop-filter: blur(4px);
}

.highlight h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: #ffffff;
}

.highlight p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e5e7eb;
}

/* Contact section */
.contact-section {
  background: #ffffff;
  padding: 100px 0;
  color: var(--text-dark);
}

.contact-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-section p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-section form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-section input,
.contact-section textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  resize: vertical;
}

.contact-section textarea {
  min-height: 150px;
}

.contact-section button {
  align-self: flex-start;
}

/* Footer */
footer {
  background: #0a192f;
  color: #ffffff;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
}

/* Responsive styles */
@media (max-width: 900px) {
  .hero-content h1 {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 2.5rem;
  }

  .featured-project {
    flex-direction: column;
  }

  .featured-project .carousel,
  .featured-project .project-info {
    flex: 1 1 100%;
  }
}

/******/

/* Remove default link styles from the logo */
.logo {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  /* no underline */
    color: inherit;
    /* inherit your text color */
}

/* Icon + text as before */
.logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-right: 8px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: bold;
  color: #ffffff;
}


.menu-toggle {
  z-index: 1000;

  position: relative;
  width: 35px;
  height: 35px;
  cursor: pointer;
}

.menu-toggle .menuicon {
  width: 30px;
  /* a bit narrower */
    height: 4px;
    /* slightly thinner */
    background-color: #f0f0f0;
    /* light neutral tone */
    margin: 5px 0;
    /* tighter spacing */
    border-radius: 2px;
    /* soft, rounded edges */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* subtle depth */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* the close icon – hidden by default */
.menu-toggle .close-icon {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  /* bumped up size */
  line-height: 1;
  color: #f0f0f0;
  /* light neutral tone */
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* when active: hide bars, show × */
.menu-toggle.active .menuicon {
  opacity: 0;
}

.menu-toggle.active .close-icon {
  display: block;
  opacity: 1;
}

/******/

@media (max-width: 768px) {

  /* Show hamburger icon */
  .menu-toggle {
    display: block;
  }

  .nav-links {
    /* Mobile menu panel styles */
    position: fixed;
    top: 0;
    right: 0;
    width: min(75vw, 280px);
    height: 100vh;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(8px);
    z-index: 999;
    /* Below navbar toggle, above content */

    /* Flex properties for vertical layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 100px;
    gap: 1.5rem;

    /* Slide-in animation */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-links li a {
    color: #ffffff;
    font-size: 1.1rem;
  }

  .navbar.scrolled {
    background: rgba(10, 25, 47, 0.95);
  }

  /* When active, slide the menu into view */
  .nav-links.active {
    transform: translateX(0);
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .services-section h2,
  .differences-section h2,
  .projects-section h2,
  .about-section h2,
  .contact-section h2 {
    font-size: 2rem;
  }
}