@import url("main.css");
/* ===== RESET & VARIABLES ===== */
/* ===== MAIN ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 768px){
  .why-us-item svg{
    width: 40px;
    height: 40px;
  }
}
/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  padding-top: 100px;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0, #ffffff);
}
html.dark .hero {
  background: linear-gradient(135deg, #0b0f19, #111827, #1f2937);
}
html.light .hero {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0, #ffffff);
}
.hero-content {
  max-width: 900px;
  text-align: center;
  padding: 50px;
}
.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--gradient);
  color: white;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-glow);
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1,
.hero > div > p {
  color: var(--text);
}
.hero > div > p {
  max-width: 760px;
  width: 100%;
  font-size: clamp(1rem, 1vw + 0.6rem, 1.1rem);
  line-height: 1.9;
  margin-top: var(--space-sm);
  text-align: justify;
  text-justify: inter-word;
  --webkit-hyphens: auto;
  --ms-hyphens: auto;
  overflow-wrap: break-word;
}

/* smaller screens */
@media (max-width: 768px) {
  .hero > div > p {
    font-size: clamp(0.95rem, 2.2vw, 1rem);
    max-width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    text-align: left;
    text-align-last: left;
  }
  .hero-features {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 400px;
    margin: 2rem auto 0;
    align-items: stretch;
  }
  .feature-creative {
    padding: 1.2rem;
    text-align: center;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .feature-icon-wrap {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
  }
  .feature-creative h4 {
    font-size: 1rem;
  }
  .feature-creative p {
    font-size: 0.8rem;
  }
}

/* Hero Features */
.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 100%;
  margin: 3rem auto 0;
  align-items: stretch;
  justify-items: stretch;
}
.feature-creative {
  background: var(--surface);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: left;
  border: 1px solid var(--border);
  transition: all 0.4s;
  position: relative;
  overflow: visible;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 180px;
}
.feature-creative::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.4s;
}
.feature-creative:hover::before {
  transform: scaleX(1);
}
.feature-creative:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}
.feature-icon-wrap {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: white;
  position: relative;
  z-index: 1;
}
.feature-creative h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.feature-creative p {
  font-size: 0.85rem;
  margin: 0;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: transform all 0.6s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.2s;
}
.reveal-delay-2 {
  transition-delay: 0.4s;
}
.reveal-delay-3 {
  transition-delay: 0.6s;
}

/* ===== SECTIONS COMMON ===== */
section {
  padding: 5rem 2rem;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.section-header h2 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ===== PROJECTS ===== */
.projects-section {
  background: var(--bg);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.project-card {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.4s,
    box-shadow 0.4s;
  cursor: pointer;
  margin-top: 1.5rem;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}
figure.project-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  margin: 0;
}
figure.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.project-card:hover figure.project-img img {
  transform: scale(1.1);
}
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--secondary-strong),
    var(--primary-strong)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}
.project-card:hover .project-overlay {
  opacity: 1;
}
.project-overlay i {
  color: white;
  font-size: 2rem;
  margin-top: 3rem;
}
.project-info {
  padding: 1.5rem;
}
.project-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.project-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.project-tag {
  padding: 0.3rem 0.8rem;
  background: var(--surface);
  color: var(--secondary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.project-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 0.9rem;
}
.project-btn:hover {
  background: var(--secondary);
  color: white;
}
.project-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.project-details.active {
  max-height: 300px;
}
.project-details-content {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== WHY CHOOSE US ===== */
.why-us-section {
  background: var(--bg);
}
.why-us-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.why-us-list {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.why-us-list::-webkit-scrollbar {
  display: none;
}
.why-us-list.reveal {
  opacity: 0;
  transform: translateX(40px);
}
.why-us-list.reveal.active {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.why-us-item {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.12);
  text-align: center;
  min-width: 260px;
  flex: 0 0 260px;
  scroll-snap-align: start;
}
html.dark .why-us-item {
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.why-us-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.2);
  border-color: var(--border-hover);
}
.why-us-item i {
  color: white;
  font-size: 1.8rem;
  width: 58px;
  height: 58px;
  background: var(--gradient);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.item-content {
  width: 100%;
}
.item-content span {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
}
.why-us-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 1;
}
.why-us-arrow.left {
  left: -22px;
}
.why-us-arrow.right {
  right: -22px;
}
.why-us-arrow:hover {
  transform: translateY(-50%) scale(1.1);
}

/* ===== MEDIA QUERIES FOR WHY-US ===== */
@media (max-width: 768px) {
  .why-us-container {
    overflow: visible;
  }
  .why-us-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    overflow: visible;
  }
  .why-us-arrow {
    display: none;
  }
  .why-us-item {
    padding: 1rem;
    min-width: auto;
    flex: 1 1 auto;
  }
  .why-us-item i {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .item-content span {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .why-us-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .why-us-item {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }
  .why-us-item i {
    margin-bottom: 0.5rem;
  }
}

/* ===== CLIENT STORIES ===== */
.stories-section {
  background: var(--bg);
}
.happiness-graph {
  max-width: 800px;
  margin: 0 auto;
}
.graph-container {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 15px;
  height: 300px;
  margin-bottom: 2rem;
  padding: 0 2rem;
  position: relative;
}
.graph-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
}
.graph-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  width: 70px;
  background: var(--gradient);
  border-radius: 8px 8px 0 0;
  position: relative;
  transition: all 0.3s;
  min-height: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.graph-bar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.graph-bar i {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.bar-label {
  position: absolute;
  bottom: -30px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}
.graph-legend {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== SERVICES ===== */
.services-section {
  background: var(--bg);
}
.services-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}
.service-showcase-card {
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.5s;
}
.service-showcase-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}
figure.service-media {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
  margin: 0;
}
figure.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.service-showcase-card:hover figure.service-media img {
  transform: scale(1.1);
}
.service-media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 40%, var(--overlay-dark));
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.service-media-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--badge-bg);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
}
.service-showcase-info {
  padding: 1.5rem 2rem 2rem;
}
.service-showcase-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.service-showcase-info h3 i {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--secondary);
}
.service-showcase-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.service-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.service-feature-tag {
  padding: 0.4rem 0.9rem;
  background: var(--surface);
  color: var(--secondary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s;
}
.service-feature-tag:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-2px);
}

/* ===== CONTACT SIMPLE ===== */
.contact-section {
  background: var(--surface);
  text-align: center;
}

@media (max-width: 480px) {
  section {
    padding: 3rem 1rem;
  }
  .hero {
    padding: 5rem 1rem 3rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero-features {
    grid-template-columns: repeat(1, 300px);
    gap: 0.8rem;
    margin: 1.5rem auto 0;
    align-items: stretch;
  }
  .feature-creative {
    padding: 1rem;
    min-height: 140px;
    text-align: center;
  }
  .feature-icon-wrap {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .feature-icon-wrap svg{
    width: 24px;
    height: 24px;
  }
  .feature-creative h4 {
    font-size: 0.95rem;
  }
  .feature-creative p {
    font-size: 0.75rem;
  }
  .service-showcase-info {
    padding: 1.5rem;
  }
}
