@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary-color: #00f0ff;
  --secondary-color: #7000ff;
  --bg-dark: #070b14;
  --bg-darker: #04060a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: #fff;
}

p {
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 400;
}

.text-muted {
  color: #a0aec0 !important; /* Slightly brighter for better contrast */
}

/* Utilities */
.text-primary-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-darker {
  background-color: var(--bg-darker);
}

.section-padding {
  padding: 120px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: block;
}

.btn-primary-custom {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-primary-custom:hover::before {
  opacity: 1;
}

.btn-primary-custom:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(112, 0, 255, 0.3);
}

.btn-outline-custom {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline-custom:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(0, 240, 255, 0.05);
}

/* Navbar */
.navbar {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
  padding: 18px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(4, 6, 10, 0.98);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.dropdown-menu-dark {
  background-color: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px;
  margin-top: 10px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.dropdown-item {
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--gradient-primary);
  color: #fff;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand i {
  color: var(--primary-color);
  font-size: 1.8rem;
}

.nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  margin: 0 10px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(112, 0, 255, 0.2) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-image {
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* Cards & Services */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px 30px;
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 30px rgba(0, 240, 255, 0.1);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 100%);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  font-weight: 600;
  font-size: 0.9rem;
}

.service-link:hover {
  gap: 12px;
}

/* Portfolio */
.portfolio-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
  background: var(--bg-card);
}

.portfolio-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(4,6,10,0.9), rgba(4,6,10,0.2));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-category {
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.portfolio-title {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
}

/* Process */
.process-step {
  text-align: center;
  padding: 20px;
  position: relative;
}

.process-icon {
  width: 90px;
  height: 90px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.process-step:hover .process-icon {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-10px);
}

.process-connector {
  position: absolute;
  top: 45px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: dashed 2px var(--border-color);
  z-index: 0;
}

.process-step:last-child .process-connector {
  display: none;
}

/* Testimonials */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  margin: 15px;
  position: relative;
}

.quote-icon {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 3rem;
  color: rgba(255,255,255,0.05);
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
}

.client-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.client-name {
  color: #fff;
  font-weight: 600;
  margin: 0;
}

.client-role {
  color: var(--primary-color);
  font-size: 0.85rem;
  margin: 0;
}

/* Blog */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-color);
}

.blog-img-wrapper {
  overflow: hidden;
}

.blog-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
  transform: scale(1.05);
}

.blog-content {
  padding: 30px;
}

.blog-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.blog-meta i {
  color: var(--primary-color);
  margin-right: 5px;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.blog-title a {
  color: #fff;
}

.blog-title a:hover {
  color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--bg-darker);
  padding-top: 80px;
  border-top: 1px solid var(--border-color);
}

.footer-widget h4 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gradient-primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--gradient-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 25px 0;
  margin-top: 50px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

/* Page Header */
.page-header {
  padding: 180px 0 100px;
  background: linear-gradient(135deg, rgba(7, 11, 20, 0.95) 0%, rgba(4, 6, 10, 0.9) 100%);
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.page-title {
  font-size: 3.5rem;
  margin-bottom: 15px;
}

.breadcrumb {
  justify-content: center;
  background: transparent;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--text-muted);
}

.breadcrumb-item.active {
  color: var(--primary-color);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 991px) {
  .hero h1 {
    font-size: 3rem;
  }
  .process-connector {
    display: none;
  }
  .process-step {
    margin-bottom: 30px;
  }
  .navbar-collapse {
    background: var(--bg-darker);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid var(--border-color);
  }
}

@media (max-width: 767px) {
  .hero {
    text-align: center;
    padding-top: 120px;
    padding-bottom: 60px;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .section-padding {
    padding: 80px 0;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .hero-image-wrapper {
    margin-top: 40px;
  }
}
