/* 
* Technic Crew - Custom CSS Styles
* Version: 1.0
*/

:root {
  /* Modern color palette - WorkShpere inspired */
  --tc-primary: #22d3ee;       /* Cyan */
  --tc-primary-dark: #0891b2;  /* Darker cyan */
  --tc-secondary: #8b5cf6;     /* Purple */
  --tc-accent: #22d3ee;        /* Cyan accent */
  --tc-dark: #0f172a;          /* Dark blue/black */
  --tc-darker: #080d19;        /* Darker shade for footer */
  --tc-light: #f9fafb;         /* Off white */
  --tc-muted: #94a3b8;         /* Slate gray */
  --tc-success: #10b981;       /* Green */
  --tc-warning: #f59e0b;       /* Amber */
  --tc-danger: #ef4444;        /* Red */
  
  /* Gradient definitions */
  --tc-gradient-primary: linear-gradient(135deg, #22d3ee, #0891b2);
  --tc-gradient-dark: linear-gradient(135deg, #0f172a, #1e293b);
  --tc-gradient-accent: linear-gradient(135deg, #22d3ee, #06b6d4);
  
  /* Font settings */
  --tc-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  
  /* Shadows */
  --tc-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --tc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --tc-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --tc-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Global styles */
body {
  font-family: var(--tc-font-family);
  color: #212529;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--tc-dark);
}

a {
  color: var(--tc-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #0a58ca;
}

/* Section spacing */
section {
  padding: 5rem 0;
}

/* Hero section - WorkShpere Style */
.hero {
  background-color: var(--tc-dark);
  color: white;
  padding: 10rem 0 8rem;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--tc-gradient-dark);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, rgba(8, 145, 178, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  z-index: 2;
  animation: pulse 15s infinite alternate ease-in-out;
}

/* Add a second glow effect */
.hero::before {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, rgba(8, 145, 178, 0.05) 40%, transparent 70%);
  border-radius: 50%;
  z-index: 2;
  animation: pulse 20s infinite alternate-reverse ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 0.7; }
  100% { transform: scale(1); opacity: 0.5; }
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s ease-out;
  position: relative;
}

.hero h1 span {
  color: var(--tc-primary);
  -webkit-text-fill-color: var(--tc-primary);
  position: relative;
}

/* Hero image container and decorative elements */
.hero-image-container {
  height: 500px;
  width: 100%;
  overflow: hidden;
}

.hero-blob {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, rgba(8, 145, 178, 0.1) 50%, transparent 70%);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: blob-animation 8s infinite ease-in-out alternate;
  filter: blur(10px);
  z-index: 1;
}

.hero-tech-pattern {
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--tc-primary) 2px, transparent 2px);
  background-size: 30px 30px;
  opacity: 0.1;
  z-index: 2;
  animation: pattern-fade 5s infinite alternate ease-in-out;
}

@keyframes blob-animation {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  50% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
}

@keyframes pattern-fade {
  0% { opacity: 0.05; }
  100% { opacity: 0.15; }
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 600px;
  animation: fadeInUp 1s ease-out 0.3s backwards;
  color: var(--tc-muted);
}

.hero .btn {
  animation: fadeInUp 1s ease-out 0.6s backwards;
  box-shadow: var(--tc-shadow-md);
  transition: all 0.3s ease;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.hero .btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--tc-shadow-lg);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: var(--tc-shadow);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  overflow: hidden;
  background-color: white;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--tc-shadow-lg);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--tc-secondary);
}

.card-title {
  color: var(--tc-dark);
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.card-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--tc-gradient-primary);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.card:hover .card-title::after {
  width: 60px;
}

.card-icon {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--tc-primary), var(--tc-primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  transition: all 0.4s ease;
}

.feature-icon-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.feature-icon-container::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.3);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-container {
  transform: translateY(-5px);
  background: rgba(34, 211, 238, 0.15);
}

.feature-card:hover .feature-icon-container::after {
  opacity: 1;
  transform: scale(1.1);
}

.card-body {
  padding: 2rem 1.5rem;
}

.card-text {
  color: var(--tc-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Feature cards with border accent */
.feature-card {
  border-top: 4px solid transparent;
  background-image: linear-gradient(white, white), var(--tc-gradient-primary);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Industry cards */
.industry-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.industry-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: all 0.5s ease;
}

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

.industry-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.industry-card:hover .industry-card-overlay {
  opacity: 0.9;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(8, 47, 73, 0.8) 100%);
}

/* Service cards with image - WorkShpere Style */
.service-card {
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    background-color: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(34, 211, 238, 0.2);
    backdrop-filter: blur(10px);
    color: white;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tc-primary), var(--tc-primary-dark));
    opacity: 0.7;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.4);
}

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

.service-card h2 {
    color: white;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.service-card h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--tc-primary);
    transition: width 0.3s ease;
}

.service-card:hover h2::after {
    width: 100%;
}

.service-card .lead {
    color: var(--tc-primary);
    font-weight: 500;
}

.service-card ul {
    color: var(--tc-light);
    padding-left: 1.5rem;
}

.service-card ul li {
    margin-bottom: 0.75rem;
    position: relative;
}

.service-card ul li::before {
    content: '•';
    color: var(--tc-primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom right, rgba(34, 211, 238, 0.2), rgba(15, 23, 42, 0.7));
    z-index: 1;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.position-relative:hover .image-overlay {
    opacity: 0.8;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card:hover .card-icon {
    transform: scale(1.1);
}

.service-card h3, .service-card h4 {
    position: relative;
    display: inline-block;
}

.service-card h3:after, .service-card h4:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.service-card:hover h3:after, .service-card:hover h4:after {
    width: 100%;
}

.service-card ul {
  padding-left: 1.5rem;
}

/* CTA Section - WorkShpere Style */
.cta-section {
  background: var(--tc-dark);
  color: white;
  padding: 5rem 0;
  position: relative;
}

.cta-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(34, 211, 238, 0.1) 2px, transparent 2px);
  background-size: 30px 30px;
  opacity: 0.1;
}

.cta-glow-1 {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, rgba(8, 145, 178, 0.1) 50%, transparent 70%);
  top: -100px;
  right: -100px;
  filter: blur(20px);
  opacity: 0.6;
  animation: float 10s infinite alternate ease-in-out;
}

.cta-glow-2 {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, rgba(8, 145, 178, 0.05) 50%, transparent 70%);
  bottom: -50px;
  left: -50px;
  filter: blur(20px);
  opacity: 0.5;
  animation: float 8s infinite alternate-reverse ease-in-out;
}

.z-index-1 {
  z-index: 1;
}

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

.cta-section h2 {
  color: white;
}

/* Footer - WorkShpere Style */
footer {
  background: linear-gradient(to bottom, var(--tc-dark), var(--tc-darker));
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(34, 211, 238, 0.2);
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.1);
}

.footer-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(34, 211, 238, 0.1) 2px, transparent 2px);
  background-size: 30px 30px;
  opacity: 0.15;
}

footer h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-heading {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--tc-primary);
}

footer p {
  opacity: 0.8;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--tc-primary);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--tc-primary);
  text-decoration: none;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-contact li {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(34, 211, 238, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--tc-primary);
  color: white;
  transform: translateY(-3px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

/* Buttons - WorkShpere Style */
.btn {
  border-radius: 50px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background-color: var(--tc-primary);
  border-color: var(--tc-primary);
  color: var(--tc-dark);
}

.btn-primary:hover {
  background-color: var(--tc-primary-dark);
  border-color: var(--tc-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(34, 211, 238, 0.3);
}

.btn-outline-light {
  border-width: 2px;
  font-weight: 600;
  color: white;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateY(-3px);
}

/* Back to Top Button - WorkShpere Style */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--tc-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(34, 211, 238, 0.3);
}

.back-to-top::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.1);
    opacity: 0;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--tc-primary-dark);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(34, 211, 238, 0.4);
}

/* Contact form */
.contact-form {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info {
  padding: 2rem;
  background-color: var(--tc-dark);
  color: white;
  border-radius: 0.5rem;
}

.contact-info i {
  font-size: 1.5rem;
  color: var(--tc-accent);
  margin-right: 1rem;
}

/* Services Navigation - WorkShpere Style */
.services-nav-wrapper {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(34, 211, 238, 0.1);
}

.nav-scroller {
  position: relative;
  z-index: 2;
  overflow-y: hidden;
  overflow-x: auto;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 0.5rem;
  margin-top: -1px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-scroller::-webkit-scrollbar {
  height: 3px;
}

.nav-scroller::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.nav-scroller::-webkit-scrollbar-thumb {
  background-color: rgba(34, 211, 238, 0.3);
  border-radius: 20px;
}

.nav-pills .nav-link {
  color: rgba(255, 255, 255, 0.7);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.nav-pills .nav-link:hover {
  color: var(--tc-primary);
  background-color: rgba(34, 211, 238, 0.1);
}

.nav-pills .nav-link.active {
  color: white;
  background-color: var(--tc-primary);
}

.hover-cyan:hover {
  color: var(--tc-primary) !important;
  text-decoration: none;
}

/* Industries section */
.industry-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  height: 250px;
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.industry-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(11, 27, 43, 0.9), transparent);
  padding: 1.5rem;
  color: white;
}

.industry-overlay h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

/* About page */
.about-section {
  position: relative;
}

.about-image {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Navbar customization - WorkShpere style */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
  background-color: var(--tc-dark) !important;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
}

.navbar-nav .nav-link {
  font-weight: 600;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.8) !important;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--tc-primary) !important;
  transform: translateY(-2px);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled {
  background-color: var(--tc-dark) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  padding: 0.75rem 0;
}

/* Accessibility */
:focus {
  outline: 3px solid var(--tc-primary);
  outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  section {
    padding: 4rem 0;
  }
}

@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
}

/* Animation classes */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility classes */
.text-tc-primary {
  color: var(--tc-primary) !important;
}

.text-tc-accent {
  color: var(--tc-accent) !important;
}

.bg-tc-dark {
  background-color: var(--tc-dark) !important;
}

.bg-tc-accent {
  background-color: var(--tc-accent) !important;
}
