@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=My+Soul&family=News+Cycle:wght@400;700&family=Oswald:wght@200..700&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; */
  background-color: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--cycle-font);
  text-transform: capitalize;
}

:root {
  --var-gradient: linear-gradient(to bottom left, #1e90ff, whitesmoke);
  --primary-color: #1e90ff;
  --hover-color: #000080;
  --text-color: #7d7c80;
  --white: #fff;
  --light-bg: #ecf0f4;
  --oswald-font: "Oswald", sans-serif;
  --mysoul-font: "My Soul", cursive;
  --cycle-font: "News Cycle", sans-serif;
  --merriweather: "Merriweather", serif;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.animate {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-right.animate {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in.animate {
  opacity: 1;
  transform: scale(1);
}

.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stagger-item.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Header Styles */
.header {
  background-color: var(--light-bg);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header-container {
  max-width: 1280px;
  /* margin: 0 auto;
  padding: 0 1.5rem; */
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.navbar {
  width: 100%;
  height: 12vh;
  min-height: 60px;
  background-color: var(--light-bg);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: fixed;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.95);
}

.company-logo {
  width: 15%;
  height: 60px;
  background-image: url(./icon/fav-icon/blue\ bg\ icon\ with\ blue.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.company-logo:hover {
  transform: scale(1.05) rotate(2deg);
}

.navbar ul {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  list-style-type: none;
  text-transform: uppercase;
  font-weight: 500;
}

.navbar ul li a {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  padding: 0.5rem 1rem;
  color: #000;
  text-decoration: none;
  font-family: var(--merriweather);
  position: relative;
  overflow: hidden;
}

.navbar ul li a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.navbar ul li a:hover::before {
  width: 100%;
}

.navbar ul li a:hover {
  color: var(--primary-color);
  font-weight: bold;
  transform: translateY(-2px);
}

.nav-item {
  font-family: var(--merriweather);
}

.nav-item:active {
  color: #000080;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #000;
  margin: 3px 0;
  transition: 0.3s;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Layout */
.layout {
  display: flex;
  min-height: calc(100vh - 4rem);
}

/* Sidebar Styles */
.sidebar {
  width: 20rem;
  background-color: white;
  border-right: 1px solid #e5e7eb;
  min-height: calc(100vh - 4rem);
  position: relative;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--hover-color));
  opacity: 0;
  animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
  }
}

.sidebar-content {
  padding: 1.5rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-category {
  border-bottom: 1px solid #f3f4f6;
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInCategory 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.service-category:nth-child(1) {
  animation-delay: 0.2s;
}

.service-category:nth-child(2) {
  animation-delay: 0.3s;
}

.service-category:nth-child(3) {
  animation-delay: 0.4s;
}

.service-category:nth-child(4) {
  animation-delay: 0.5s;
}

.service-category:nth-child(5) {
  animation-delay: 0.6s;
}

@keyframes slideInCategory {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.service-category:last-child {
  border-bottom: none;
}

.category-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.75rem;
  background: none;
  border: none;
  text-align: left;
  border-radius: 0.5rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  font-size: 1.125rem;
  color: #374151;
  position: relative;
  overflow: hidden;
}

.category-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(30, 144, 255, 0.1), transparent);
  transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-button:hover::before {
  left: 100%;
}

.category-button:hover {
  background-color: #f9fafb;
  transform: translateX(5px);
}

.category-button.active {
  background-color: #fff7ed;
  color: var(--hover-color);
  font-weight: 500;
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.15);
}

.category-title {
  flex: 1;
}

.chevron {
  color: #9ca3af;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 0.875rem;
}

.category-button.active .chevron {
  color: var(--hover-color);
  transform: rotate(90deg);
}

.category-items {
  padding-left: 1.5rem;
  padding-bottom: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
}

.category-items.expanded {
  display: flex;
  animation: expandItems 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes expandItems {
  from {
    max-height: 0;
    opacity: 0;
  }

  to {
    max-height: 200px;
    opacity: 1;
  }
}

.category-item {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: none;
  border: none;
  text-align: left;
  border-radius: 0.375rem;
  transition: all 0.15s;
  cursor: pointer;
  font-size: 0.875rem;
  color: #6b7280;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInItem 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.category-item:nth-child(1) {
  animation-delay: 0.1s;
}

.category-item:nth-child(2) {
  animation-delay: 0.2s;
}

.category-item:nth-child(3) {
  animation-delay: 0.3s;
}

.category-item:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInItem {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-item:hover {
  color: var(--hover-color);
  background-color: #fff7ed;
  transform: translateX(5px);
}

.category-item.active {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.3);
}

/* Main Content Styles */
.main-content {
  flex: 1;
  background-color: #f9fafb;
}

/* Hero Section */
.hero-section {
  background-color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(30, 144, 255, 0.05) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #111827 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.7;
  transition: all 0.3s ease;
}

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

.btn {
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.btn-primary:hover {
  background-color: var(--hover-color);
  box-shadow: 0 8px 25px rgba(30, 144, 255, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.hero-image {
  padding-left: 2rem;
  height: 18rem;
  background-image: url(./img/service-details.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 1024px) {
  .hero-image {
    padding-left: 0;
  }

  .logo {
    background-image: url(./icon/fav-icon/icon\ blue\ 2.png);
    width: 13%;
    height: 100%;
  }
}

/* Features Section */
.features-section {
  padding: 4rem 0;
  background: linear-gradient(to bottom, #f9fafb, #fff);
}

.features-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.feature-card {
  background-color: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--hover-color));
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-8px) scale(1.02);
}

.feature-icon {
  width: 50%;
  height: 40vh;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

.feature-icon img.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card:hover .feature-img {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-family: var(--cycle-font);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
  color: var(--primary-color);
}

.feature-description {
  color: #6b7280;
  line-height: 1.6;
}

/* Responsive Sidebar */
@media (max-width: 1024px) {
  .navbar {
    padding: 0 1rem;
  }

  .feature-icon {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .company-logo {
    width: 120px;
    height: 40px;
  }

  .navbar {
    padding: 0 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-flex {
    position: fixed;
    top: 12vh;
    left: -100%;
    width: 100%;
    height: calc(100vh - 12vh);
    background-color: var(--light-bg);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
  }

  .nav-flex.active {
    left: 0;
  }

  .navbar ul {
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
    padding-top: 2rem;
    gap: 1rem;
  }

  .navbar ul li {
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInNavItem 0.3s ease forwards;
  }

  .navbar ul li:nth-child(1) {
    animation-delay: 0.1s;
  }

  .navbar ul li:nth-child(2) {
    animation-delay: 0.2s;
  }

  .navbar ul li:nth-child(3) {
    animation-delay: 0.3s;
  }

  .navbar ul li:nth-child(4) {
    animation-delay: 0.4s;
  }

  @keyframes fadeInNavItem {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .navbar ul li a {
    display: block;
    padding: 1rem;
    font-size: 1.2rem;
  }

  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .sidebar-content {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    height: 10vh;
    padding: 0 0.5rem;
  }

  .company-logo {
    width: 100px;
    height: 40px;
  }

  .nav-flex {
    top: 10vh;
    height: calc(100vh - 10vh);
  }

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

.loading {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Pulse animation for buttons */
.btn-primary {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
  }

  50% {
    box-shadow: 0 4px 20px rgba(30, 144, 255, 0.5);
  }

  100% {
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
  }
}