/* ===== ROOT VARIABLES ===== */
:root {
  --bg: #121212;
  /* Dark background */
  --fg: #e0e0e0;
  /* Light text */
  --accent: #909090;
  /* Keep gold or go slightly brighter */
  --muted: #a0a0a0;
  /* Light grey for subtext */
  --card: #1e1e1e;
  /* Slightly lighter than bg for cards */
  --overlay: rgba(0, 0, 0, 0.6);
  --maxw: 1200px;
  --radius: 12px;
  --transition: 0.35s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* This prevents the fixed header from covering the section title */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  scroll-behavior: smooth;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  backdrop-filter: blur(6px);
  background: rgba(18, 18, 18, 0.95);
  /* Matches --bg */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  /* Darker shadow */
  transition: padding 0.3s ease, background 0.3s ease;
}

header.scrolled {
  padding: 8px 20px;
}

header .container {
  max-width: var(--maxw);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
}

.brand img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--fg);
  transition: transform 0.3s ease;
}

nav ul {
  display: flex;
  gap: 16px;
  list-style: none;
  font-weight: 600;
}

nav ul li a {
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: background var(--transition);
}

nav ul li a:hover,
.active {
  background: var(--card);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger div {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* Mobile menu */
@media (max-width: 880px) {
  nav ul {
    display: none;
    /* hidden by default */
    position: absolute;
    top: 60px;
    right: 20px;
    flex-direction: column;
    gap: 10px;
    background: #000;
    padding: 40px;
    border-radius: 12px;
    background: var(--card);
    /* Changed from #000 to your card color */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Adds definition */
  }

  nav ul.open {
    display: flex;
    /* only show when hamburger clicked */
  }

  .hamburger {
    display: flex;
  }

  .hamburger div {
    background: var(--fg);
    /* Changed from #fff to follow text color */
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease, transform 1.2s ease;
  transform: scale(1.05);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #fff;
  text-align: center;
  max-width: 90%;
  padding: 40px 20px;
  width: 60% !important;
}

.hero-inner h1 {
  font-size: 40px;
  margin-bottom: 12px;
}

.hero-inner p {
  color: #fff;
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.hero-inner .cta {
  margin-top: 18px;
  display: inline-flex;
  gap: 12px;
}

.hero-inner .type {
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  padding-right: 6px;
  margin-left: 4px;
  display: inline-block;
}

/* ===== SECTIONS ===== */
section {
  padding: 80px 20px;
  max-width: var(--maxw);
  margin: auto;
  position: relative;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  font-weight: 600;
  position: relative;
  color: var(--fg);
}

/* .section-title::after{content:"";position:absolute;left:0;bottom:-6px;width:60px;height:3px;background:var(--accent);border-radius:3px;} */
.page-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SERVICES ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.svc {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 260px;
  background: var(--card);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.svc:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.svc .front {
  position: absolute;
  inset: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
}

.svc .icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 12px;
}

.svc h3 {
  margin-bottom: 6px;
}

.svc .desc {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== PORTFOLIO ===== */
#portfolio { 
  text-align: center; 
  padding: 50px 0; 
}

.portfolio-carousel { 
  position: relative; 
  overflow: hidden; 
  width: 100%; 
}

.portfolio { 
  display: flex; 
  flex-wrap: nowrap;     /* Forces everything onto one line */
  width: max-content;    /* Ensures the container is as wide as the images */
  animation: scrollLogo 50s linear infinite; /* Increased time for smoother movement */
}

.portfolio-item { 
  flex: 0 0 auto; 
  margin: 0 20px; 
  transition: transform 0.3s ease; 
}

.portfolio-item img { 
  width: 100px;          /* Set a specific width to keep them uniform */
  height: 100px;
  object-fit: cover;     /* Keeps images from looking stretched */
  display: block; 
}

@keyframes scrollLogo { 
  0% { transform: translateX(0); } 
  100% { transform: translateX(-50%); } /* Only move 50% if you duplicated the list */
}

/* Pause animation on hover */ 
.portfolio:hover { 
  animation-play-state: paused; 
}
.view-more {
  display: inline-block;
  margin-top: 20px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
}


/* ===== TESTIMONIALS ===== */
.testi {
  overflow: hidden;
  position: relative;
  margin-top: 24px;
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 30px;

  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);

}


.testi-track {
  display: flex;
  transition: transform 1s ease;

}

.testi-item {
  min-width: 300px;
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  margin-right: 12px;
}

/* ===== COUNTERS ===== */
.counters {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.counter {
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), transparent);
  text-align: center;
}

.counter strong {
  display: block;
  font-size: 28px;
  color: var(--fg);
}

footer {
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--muted);
}

.hero {
  width: 100vw;
  height: 100vh;
  padding: 0;
  /* remove section padding */
  max-width: 100%;
  /* override max-width */
  margin: 0;
  /* override margin */
  position: relative;
  overflow: hidden;
}

header {
  position: sticky;
  /* keeps it on top */
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  /* on top of everything */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* optional: shrink navbar on scroll */
header.scrolled {
  padding: 8px 20px;
  /* smaller padding */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#services {
  text-align: center;
  /* center title and items */
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.svc {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;

  padding: 30px 20px;
  color: #fff;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.svc:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.svc .icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 15px;
  box-shadow: 0 10px 25px rgba(240, 199, 94, 0.35);
}



.svc h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.svc .desc {
  font-size: 0.95rem;
  color: #e5e7eb;
}

.svc:hover .icon {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

#portfolio {
  text-align: center;
}

.filters {
  display: flex;
  justify-content: center;
  /* center the filter buttons */
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter:hover,
.filter.active {
  background: #909090;
  color: #fff;
  border-color: #909090;
}

/* .portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 25px;
  justify-items: center;
} */

.proj {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proj img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.proj:hover img {
  transform: scale(1.08);
}

.proj .pinfo {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.proj:hover .pinfo {
  opacity: 1;
}

.view-more {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 22px;
  border-radius: 12px;
  background: #909090;
  color: #fff;
  font-weight: 600;
  transition: 0.3s ease;
}

.view-more:hover {
  opacity: 0.9;
}

.about-section {
  padding: 80px 20px;
  background: #fdfaf7;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  margin: auto;
}

.about-text {
  flex: 1 1 500px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #909090;
}

.about-list {
  list-style: inside disc;
  margin: 20px 0;
  font-weight: 500;
}

.about-list li {
  margin-bottom: 10px;
  font-weight: 100;
  color: #909090;
}

.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  margin-top: 20px;

  border: 1px solid #909090;
  border-radius: 20px;

  transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

.about-image {
  flex: 1 1 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image img:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 880px) {
  .about-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-image {
    width: 80%;
    margin: auto;
  }
}

header {
  background-color: #000;
  /* black background */
  color: white;
  padding: 15px 0;
  transition: background-color 0.5s ease;
  /* smooth change */
}

header:hover {
  background-color: #222;
  /* lighter black on hover */
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

.brand h1 {
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
  margin: 0;
}

#themeToggle {
  background: transparent;
  border: none;
  color: white !important;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s;
  background-color: #fff;
}

#themeToggle:hover {
  transform: scale(1.2);
}




/* ===== TESTIMONIALS SECTION ===== */
section.page-fade:nth-of-type(4) {
  background: var(--bg);
  color: #222;
  text-align: center;
  padding: 100px 20px;
}

.section-title {
  color: #909090;
  /* soft gold */
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #909090;
  margin: 12px auto 0;
  border-radius: 2px;
}

.testi {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.testi-item {
  flex: 1 1 300px;
  border-radius: 14px;
  padding: 30px 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testi-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testi-item p {
  font-style: italic;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.6;
  color: #fff;
}

.testi-item strong {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
}

/* ===== ACHIEVEMENTS / COUNTERS ===== */
section.page-fade:nth-of-type(5) {
  background: var(--bg);
  color: #222;
  text-align: center;
  padding: 100px 20px;
}

.counters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.counter {
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 40px 30px;
  width: 220px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.counter:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.counter strong {
  font-size: 2.5rem;
  color: #909090;
  margin-bottom: 8px;
  display: block;
}

.counter span,
.counter div {
  font-size: 1rem;
  color: #555;
  letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 768px) {
  .testi-item {
    flex: 1 1 90%;
  }

  .counter {
    width: 80%;
  }

  .form-container {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .form-group {
    margin-bottom: 20px;
    text-align: left;
  }

  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
  }
}

#about {
  background-color: #121212;
}


.counters {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.counter {
  min-width: 220px;
  padding: 30px 24px;
  text-align: center;

  /* glass effect */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);

  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.counter strong {
  display: block;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

/* hover effect */
.counter:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}